Logrotate is regularly rotating /var/log/messages but system is still generating logs in rotated log file.

Solution Verified - Updated -

Issue

  • Logrotate is configured to keep 28 rotations and /var/log/messages is being rotated regularly but system is still using /var/log/messages.17 instead of /var/log/messages for new log entries.

Environment

  • Red Hat Enterprise Linux 6
  • rsyslog-5.8.10-2.el6
  • logrotate-3.7.8-15.el6

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