How to rotate log files using logrotate in JBoss EAP
Issue
- How to use PeriodicRotatingFileHandler for
console.log
file? - How to rotate the console logging which is obtained by the following:
./run.sh > console.log 2>&1
- Since the console log is produced by a
ConsoleAppender
, the log rotate functionality provided byRollingFileAppender
won't be available. - How to rotate the console log in Domain mode when using Linux service?
- How to rotate old JBoss EAP server log files using logrotate?
- How to keep JBoss EAP server log files for a longer period of time using logrotate?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 4.x
- 5.x
- 6.x
- 7.x
- Red Hat JBoss Enterprise SOA Platform (SOA-P)
- 4.x
- 5.x
- 6.x
- Red Hat JBoss Data Grid
- 7.2.0
- Red Hat Enterprise Linux
- 5
- 6
- 7
- logrotate
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.