Skip to content

Preprocessing Log Files (optional)

Stephan Kliche edited this page Dec 25, 2015 · 2 revisions

In order to effectively analyze the generated files, it is useful to preprocess the files you want to analyze before you load them via RMA. With preprocessing unnecessary data is removed from SystemOut and the parsing of the data is faster in RMA. We are using grep to filter out all relevant log entries from request metrics.


If you are working directly on the server:

  1. Open a terminal in the Websphere Application Server log directory (containing the SystemOut.log files)

  2. For preprocessing the log files in the directory use the following command

     grep -H "PMRM0003I" SystemOut*.log > metrics.txt
    

If you are NOT working directly on the server (e.g. only have the SystemOut.log files):

  1. Create a directory containing the log files you want to analyze

  2. Move all SystemOut.log files you want to analyze to the directory

  3. For preprocessing the log files in the directory use the same grep command

     grep -H "PMRM0003I" SystemOut*.log > metrics.txt
    

The "-H" operator ensures that the file name of the log file is written at the beginning of each line in the metrics file.

Clone this wiki locally