Keep a fixed number of backups of periodic rotating logger in JBoss EAP

Solution Verified - Updated -

Issue

  • Is there a way to limit the number of backups when using the periodic-rotating-file-handler (date-based rotation) handler?
  • When using periodic-rotating-file-handler for the JBoss EAP server.log, the log file count grows without bounds.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6
    • 7

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