mongodb logrotation creates two files

Solution In Progress - Updated -

Issue

  • Default Logrotation for mongodb creates two logfiles in /var/log/mongodb
  • ls -l /var/log/mongodb shows 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content