Logs do not rotate, "/var/log/messages" grows in size

Solution Verified - Updated -

Issue

  • Logs do not rotate properly, the most recent file grows with further entries:
# ll -h | grep messages
-rw-------. 1 root root   724M Mar 24 11:43 messages
-rw-------. 1 root root   2.5G Mar 16 09:35 messages.0316
-rw-------. 1 root root   292M Jun 14  2015 messages.9

Environment

  • Red Hat Enterprise Linux 6
  • logrotate

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