Logging stops while using async-handler in logging subsystem in EAP 6
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 6.x
Issue
When configuring the logging subsystem, adding an async-handler can cause all logging to stop. The server log file is not written to after a restart. The server log timestamp is updated, but nothing is written to it.
/subsystem=logging/async-handler=rh_async:add
Resolution
This is a bug in JBoss JBoss logging subsystem 1. There are a couple of workarounds:
-
Remove
logging.propertiesfrom the JBoss configuration directory. This only needs to be done when JBoss is restarted after anasync-handlerhas been modified. -
Initialize the
async-handlervia the CLI using thesubhandlerattribute:
/subsystem=logging/async-handler=rh_async:add(queue-length=1000,subhandlers=[rh_file_handler])
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
