Automatically deleting old logs when using periodic-rotating-file-handler

Solution Unverified - Updated -

Issue

  • Need a max-backup-index feature onperiodic-rotating-file-handler like size-rotating-file-handler?
  • periodic-size-rotating-file-handler will limit the logs by index per item period, but beyond periods, it can grow indefinitely.
  • Automatically deleting log files older then a specified period of time when using periodic-rotating-file-handler

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6, 7
  • Red Hat Single Sign-On 7
  • Logging
  • Rotating logs by size and date

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