Comments on: Automating MongoDB Log Rotation https://www.percona.com/blog/automating-mongodb-log-rotation/ Fri, 22 Dec 2023 00:45:12 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Wernfried Domscheit https://www.percona.com/blog/automating-mongodb-log-rotation/#comment-10972270 Wed, 27 May 2020 19:31:07 +0000 https://www.percona.com/blog/?p=52731#comment-10972270 Instead of
kill -SIGUSR1 cat /var/run/mongodb/mongod.pid 2>/dev/null
better use
kill -SIGUSR1 pidof mongod
then the pid-file is not relevant.

]]>
By: bhargav https://www.percona.com/blog/automating-mongodb-log-rotation/#comment-10970842 Wed, 29 May 2019 09:50:08 +0000 https://www.percona.com/blog/?p=52731#comment-10970842 Two things i observed

1) Manually working by logrotate -f /etc/logrotate.d/mongod command but when actual log getting full its not create *log.1 or gz.
2) File naming which have shown in tutorial quite confusing
a) you said “/etc/logrotate.d/mongod.conf” but when you have given content for editing file it has logrotate-mongod.conf name but when you test actually it has logrotate -f /etc/logrotate.d/mongod

]]>
By: Darshan Jrshan https://www.percona.com/blog/automating-mongodb-log-rotation/#comment-10969740 Thu, 27 Sep 2018 17:39:53 +0000 https://www.percona.com/blog/?p=52731#comment-10969740 nicely documented, well explained with commands,Thanks Vinod,

]]>