Application holding old rotated/deleted logs and still writing after log rotation

Solution Verified - Updated -

Issue

  • lsof output shows rsyslog holding deleted files
  • deleted files are log files which were rotated by logrotate
  • Application still writing to old files and new logs are empty
  • Restarting the application releases the deleted file and new logs starts writing

Environment

  • Red Hat Enterprise Linux
  • 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