sort_mtx_debug_log.py
The sort_mtx_debug_log.py script sorts one or more specified log files by the timestamps found in the file(s) and prints them to standard output to aid in debugging. Most of the lines in a log file are in order but, due to multi-threading issues and the formatting needed by certain lines, these lines can be written in the wrong order.
Syntax
sort_mtx_debug_log.py [-f filename | -h | -d | --debug_performance]
Options
- -f filename, --file=filename
- Runs the analysis on the specified system log file or files. Log files are written to the directory specified with the ${MTX_LOG_DIR} environment variable. When you have multiple input files, each input file is processed entirely before the next file is processed and only one output file is generated. Therefore, the output is sorted per input file, but not necessarily sorted based upon the entire output file. It depends on the order the files are processed and the contents of the files.
- -h, --help
- Help about the script options.
- -d, --debug
- Debug flag. The default is off. If specified, extra messages are printed. It can be specified multiple times, which increases the types of extra messages printed.
- --debug_performance
- Do performance timings on this script.
For more information about the MATRIXX environment variables, see the discussion about container directories and environment variables in MATRIXX Installation and Upgrade.
Return More Debug Log Information
sort_mtx_debug_log.py -f ${MTX_LOG_DIR}/mtx_debug.log -d
Sort Messages in the transaction_server.stderr.log File
sort_mtx_debug_log.py -f ${MTX_LOG_DIR}/transaction_server.stderr.log