Running arpreparelogs.exe
Before you begin
Before running arpreparelogs.exe, make sure that you have performed the following tasks:
- Capture the issue in appropriate logs.
- Download and install the utility.
- Review AR System Log Analyzer User Guide.
- Copy the log files to a working directory accessible to AR System Log Analyzer, and verify that no other files include a .log extension.
To prepare multiple logs for AR System Log Analyzer
- Open a command prompt window and navigate to the working directory that contains the log files.
Run the command:
arpreparelogs -o <outputLogFileName> *.logThe screen displays the steps that arpreparelogs perform, the results, and the following message:
Merging log files and re-assembling lines fragmented by carriage returns...
The output log file name is created in the working directory. The size of the output file is the sum of the input file sizes.
To prepare logs for a single transaction
After performing an analysis of the system, you can focus on a particular slow transaction as follows:
- Identify the RPC ID of the transaction.
Run arpreparelogs by using the -r parameter to indicate the RPC ID.
arpreparelogs -r 38837 -o one_transaction.log *.log
To prepare logs from a time range subset of the log
When a performance issue occurs during a known time range but logs have been running for a much longer period, you can extract a portion of the logs within a specified time range:
- Open a command prompt.
- Navigate to the location of the log files.
Run arpreparelogs using the -s and -e parameters to indicate the start and end times.
For example:arpreparelogs -s "09/29/2011 13:50:00" -e "09/29/2011 14:10:00" -o output.log *.log
This command creates an output.log file that contains log entries from all log files in the directory recorded on September 29, 2011, between 1:50 P.M. and 2:10 P.M.
Troubleshooting
If an issue occurs while running arpreparelogs.exe, follow the steps to investigate the issue:
- Verify that the working directory contains sufficient space.
The output file will take about the same amount of space as the combined log files. - Verify that the generated output file is approximately the correct size.
- Verify that the log files are accessible to arpreparelogs.exe.
Example
An administrator captures API and SQL logs to a file named arapi_2077092b.log and a separate filter log named arfilter_2077092b.log. The administrator copies both log files to a directory accessible to arpreparelogs.exe. After confirming no other .log files are included in the directory, the administrator runs the command:
Following example is the expected output:
Log lines containing timestamps outside of the following range will not appear in output:
Minimum timestamp: 01-JAN-2000 06:00:00.0
Maximum timestamp: 01-JAN-2035 00:00:00.0 Replacing Ctrl-Z with space so that logs may be read as text
arfilter_20770929b.log
arapi_20770929b.log
Finding wrap point and unwrapping each log file
arfilter_20770929b.log
Searching for wrap point
..........................
arfilter_20770929b.log does not appear to have wrapped or wrap point found a
t first or last line.
Unwrap not necessary
arapi_20770929b.log
Searching for wrap point
.
arapi_20770929b.log does not appear to have wrapped or wrap point found at f
irst or last line.
Unwrap not necessary
Merging log files and re-assembling lines fragmented by carriage returns........
...................
C:\Program Files\BMCts>