-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Minor - P4
-
None
-
Affects Version/s: 1.6.3
-
Environment:Debian or Ubuntu systems using the official packages from the 10gen repositories.
-
Server Development Platform
-
v4.7, v4.4
-
Dev Platform 2020-01-13, Dev Platform 2020-09-21, Dev Platform 2020-10-05, Dev Platform 2020-10-19, Dev Platform 2020-11-16
The Ubuntu and Debian packages don't add an entry to /etc/logrotate.d that rotates the logfile in /var/log/mongodb. So on a production system, the file /var/log/mongodb/mongodb.conf just grows unchecked. This will prove problematic for beginners who don't realize that's an issue until they suddenly run out of disk space. Something like this in /etc/logrotate.d should do it:
180:/var/log/mongodb# cat /etc/logrotate.d/mongodb
/var/log/mongodb/mongodb.log
- is duplicated by
-
SERVER-16680 Include logrotate script for MongoDB
- Closed
-
SERVER-29963 Include log rotate scripts into deb and rpm packages
- Closed
- related to
-
SERVER-4905 logRotate should conform to standard log rotation mechanisms
- Closed