Generate a List of RelatedMsgIds

Perform this task to generate a list of logged messages with a unique RelatedMsgId from a log file.

Procedure

  1. In a terminal, enter the following command to go to the system log directory:
    cd /var/mtx
  2. 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