mongodb logrotation creates two files
Issue
- Default Logrotation for
mongodbcreates two logfiles in/var/log/mongodb -
ls -l /var/log/mongodbshows more files than expected:# ls -al /var/log/mongodb/ total 2052 -rw-r--r--. 1 mongodb mongodb 181155 Jun 6 14:03 mongodb.log -rw-r--r--. 1 mongodb mongodb 44486 May 16 03:47 mongodb.log-20160516.gz -rw-r--r--. 1 mongodb mongodb 1493 May 22 03:11 mongodb.log-20160522.gz -rw-r--r--. 1 mongodb mongodb 11452 May 29 03:35 mongodb.log-20160529.gz -rw-r--r--. 1 mongodb mongodb 1826531 Jun 6 03:49 mongodb.log-20160606 -rw-r--r--. 1 mongodb mongodb 0 May 16 03:47 mongodb.log.2016-05-16T01-47-02 -rw-r--r--. 1 mongodb mongodb 0 May 22 03:11 mongodb.log.2016-05-22T01-11-01 -rw-r--r--. 1 mongodb mongodb 0 May 29 03:35 mongodb.log.2016-05-29T01-35-01
Environment
- Red Hat OpenStack Platform 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
