Reputation: 441
I'm trying to find a tool to analyze a bunch of log files generated by log4j and ended up with Apache Chainsaw. Unfortunately, I could not find adequit documentations to help how to use it. All what I was able to do is viewing the result of one log file only.
Does anyone know how to load more than one file at the same time and view them in one tab?
Any helpful documentation?
Any other tools ?
Thanks
Upvotes: 0
Views: 3366
Reputation: 1736
Try the latest released version of Apache Chainsaw - http://logging.apache.org/chainsaw/2.x/
The Chainsaw configuration screen provides the option to parse local log files directly from a log4j xml configuration file (Use fileappender entries from a log4j config file option), or to specify the logFormat and log file yourself and have Chainsaw automatically start parsing logs (Process a log file option).
Chainsaw can also parse and tail log files available remotely via ssh using the VFSLogFilePatternReceiver - see the Welcome tab, View example receiver configuration, VFSLogFilePatternReceiverNoUserInfoPrompt example.
If you're using Log4j2, it's even easier to load events in to Chainsaw - just enable an advertiser and add the jmdns.jar on your appender side - see http://logging.apache.org/log4j/2.x/manual/configuration.html#ChainsawSupport
Upvotes: 0
Reputation: 5608
You can use LogMX. Using the free version, go to "File" > "Configure Log Parsers...", click on the "+" green button at the right to create a Parser, then click on the tab "Log4j/Logback pattern" tab, then paste your Log4j pattern (the one you specified in your log4j config file, usually something like "%d %level [%thread] %c - %m")
LogMX can open multiple log files and display their content in a single merged view:
if all the files are in the same directory (local or remote), simply go to "File" > "Open logs...", then check the tab "Merge" at the bottom
if all the files are NOT in the same directory, go to "File" > "Open several logs in a merged view", then click the "+" green button at the right for each file you want to include
if all the files are already loaded in LogMX, you can use "Tools" > "Merge logs..."
Upvotes: 0