Application holding old rotated/deleted logs and still writing after log rotation
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.