logrotate - error: duplicate log entry for /var/log/messages (or other log files)

Solution Verified - Updated -

Issue

  • Errors seen in logrotate about a duplicate log entry seen in /var/log/message

  • Running "logrotate /etc/logrotate.conf" shows errors similar to:

    • Duplicate entries for /var/log/acpid:
    error: /etc/logrotate.conf:58 duplicate log entry for /var/log/acpid
    error: found error in /var/log/acpid , skipping
    
    • Duplicate entries for /var/log/messages among others
    error: syslog:1 duplicate log entry for /var/log/messages
    error: found error in /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron , skipping
    

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5

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