Generate a List of RelatedMsgIds
Perform this task to generate a list of logged messages with a unique RelatedMsgId from a log file.
Procedure
-
In a terminal, enter the following
command to go to the system log directory:
cd /var/mtx
-
Enter the following command, replacing log_file with the
name of the log file to parse:
cat log_file | awk '{match($0,"] ([^[:space:]]+) ",a)} {print a[1]}' | sort | uniq