Utility for summarizing the JBoss server log file based on message categories and priorities.

Command-Line Arguments

-rfn or --report-file-name

file name for the report

This argument is required.

-f or --files

list of log files to analyze

This argument is required.

Full command-line:

java info.mikaelsvensson.devtools.analysis.serverlog.ServerLogSummaryAnalyzer -cp [class path]
    --report-file-name <output report file path>
    --files <input log files>

The Report

The generated report will contain information about how many times the different Log4J categories are used, and for which priorities/severities. Lets take a look at an example:

      Grouped And Sorted By Category
      Category                                                            Priority        # total   # exceptions
      STDOUT                                                                  INFO             64              0
      javax.enterprise.resource.webcontainer.jsf.config                    WARNING              3              0
      org.jboss.aspects.tx.TxPolicy                                          ERROR            554            534
      org.jboss.bootstrap.microcontainer.ServerImpl                           INFO              1              0

The example shows that 64 log entries written directly to "standard out". Furthermore, the category "org.jboss.aspects.tx.TxPolicy" has been used 554 times and 534 of those messages seem to mention some kind of exception class (a qualified Java class name ending in "Exception").


Example (assuming utility has been compiled using instructions below):

  analysis> java -cp target/classes;target/dependency/* \
      info.mikaelsvensson.devtools.analysis.serverlog.ServerLogSummaryAnalyzer \
      -f <jboss_home>/log/server.log \
      -rfn report.txt


analysis$ mvn clean install dependency:copy-dependencies

Back to top

Reflow Maven skin by Andrius Velykis.