JBoss console.log
Hello
Environment:
JBoss EAP 6.0.1.GA
Red Hat 6.5
Standalone and domain installations
Issue:
Can not rotate the file console.log without restarting JBoss
Detail:
I am using JBoss EAP 6.0.1.GA on Red Hat and I would like to be able to manage the files console.log within a professional and sustainable way so that they do not fill up the whole disk.
Our installation writes the console.log files to: /var/log/jboss-as/console.log
A restart of the JBoss application initiates a new console.log file and creates an old copy with a date extension, called: /var/log/jboss-as/standalone/server.log.YYYY-MM-DD
We can deal with the other JBoss log files using something like: rotate-size value="2048"
However we can not rotate the console.log log file.
I have searched the web and these pages (the search on here is not very good) but I can not find any solutions for console.log. I can find lots of questions on the web but not any solutions.
Similar unanswered questions are here:
https://developer.jboss.org/message/820003#820003
https://developer.jboss.org/message/817689#817689
https://developer.jboss.org/message/193255#193255
Some answers mention using the file log4j.xml but we do not have that file within this installation.
I have also looked at the JBoss documentation and a couple of books.
The JBoss documentation does not reference the file.
We need to be able to manage the file /var/log/jboss-as/console.log and I was hopping or really expecting that the product should really be able to to manage it itself with configuration.
It is an enterprise product after all.
Does anyone have an idea what we can do ?
Thank you.
Responses
The best way of doing this is using the OS utilities that are available like cronlog or logrotate. If you're running on RHEL and have a support subscription for it then I'd suggest raising a support case to get the file size issue looked in to. I'm not sure I fully understand why it doesn't offer the solution you're looking for but I'm sure the platform support folks will be able to help.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
