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, 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