Display Error Messages in the Messages Log File
To determine the details of the error messages in the Messages Log File.
To display router component error messages in the messages system log file, use the following CLI command:
The messages system log file records the time the failure or event occurred, the severity level, a code, and a message description. Error messages in the messages system log file are logged at least 5 minutes before and after the alarm event.
To search for specific information in the log file, use the | match component-name command; for example, use show log messages | match fpc. If there is a space in the component name, enclose the component name in quotation marks; for example, | match “power supply”.
To search for multiple items in the log file, use the | match command followed by the multiple items, separated by the | (pipe), and enclosed in quotation marks; for example, | match “fpc | sfm | kernel | tnp”.
To monitor the messages file in real time, use the monitor start messages CLI command. This command displays the new entries in the file until you stop monitoring by using the monitor stop messages CLI command.
For more information about system log messages, see the Junos System Log Messages Reference.