-
Notifications
You must be signed in to change notification settings - Fork 1
Preprocessing Log Files (optional)
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:
-
Open a terminal in the Websphere Application Server log directory (containing the SystemOut.log files)
-
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):
-
Create a directory containing the log files you want to analyze
-
Move all SystemOut.log files you want to analyze to the directory
-
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.