logrotate and log4j causing zero / null bytes at the front of logfile

Solution Verified - Updated -

Issue

logrotate creates a server.log file fill with zero (NUL) value characters the size of the old log, how can we get this to work?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 5.x
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.