How do I recover the missing JBoss server.log?
- Red Hat JBoss Enterprise Application Platform (EAP)
- JBoss EAP log file
server.logis archived by a maintenance script and does exist anymore.
- The log file is not automatically re-generated during server runtime hence all the logging messages are lost.
- The easiest way is restarting the server. The
server.logwill be re-populated and start logging normally.
If the server cannot be restarted (e.g Production environment), the logging subsystem can be reconfigured by below way:
Backup the configuration files before running this command. After running above command, the new
server.logcould be re-populated.
- The log4j subsystem maintains the linkage between FileHandler and the current log file
server.log. If any commands delete the log file, the linkage is broken and needs to be rebuilt.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.