How to make the Fuse 6.x Karaf console log all commands for auditing purposes
Issue
Fuse 6.x has no built-in method for logging commands entered at the Karaf prompt. Sometimes it is desirable to keep a record of such commands for auditing or troubleshooting purposes. Karaf does write a history file (typically $HOME/.karaf/karaf.history) but this file does not include information about the specific administrator that executed the command, or the time when it was executed. Moreover, this file is not guaranteed to be written if, for example, Fuse is shut down uncleanly, or there are multiple, concurrent Karaf sessions.
Environment
- Red Hat JBoss Fuse
- 6.1
- 6.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
