You can use filters to display relevant events. Table 166 describes the different filters, their functions, and the associated actions. You can apply any or a combination of the described filters to view the messages that you want to view.
Table 166: Filtering System Log Messages
Field |
Function |
Your Action |
---|---|---|
System Log File |
Specifies the name of a system log file for which you want to display the recorded events. Lists the names of all the system log files that you configure. By default, a log file, messages, is included in the /var/log/ directory. For information about how to configure system log files, see Sending System Log Messages to a File. |
To specify events recorded in a particular file, select the system log filename from the list—for example, messages. |
Event ID |
Specifies the Event ID for which you want to display the messages. Allows you to type part of the ID and completes the remaining automatically. An event ID, also known as system log message code, uniquely identifies a system log message. It begins with a prefix that indicates the generating software process or library. |
To specify events with a specific ID, type its partial or complete ID—for example, TFTPD_AF_ERR. |
Text in Event Description |
Specifies text from the description of events that you want to display. Allows you to use regular expression to match text from the event description. Note: The regular expression matching is case sensitive. For more information about using regular expressions, see Regular Expressions. |
To specify events with a specific description, type a text string from the description with regular expression. For example, type ^Initial* to display all messages with lines beginning with the term Initial. |
Process |
Specifies the name of the process generating the events you want to display. To view all the processes running on your system, enter the CLI command—show system processes. For more information about processes, see the JUNOS Software Installation and Upgrade Guide. |
To specify events generated by a process, type the name of the process. For example, type mgd to list all messages generated by the management process. |
Start Time End Time |
Specifies the time period in which the events you want displayed are generated. Displays a calendar that allows you to select the year, month, day, and time. It also allows you to select the local time. By default, the messages generated in the last one hour are displayed—End Time shows the current time and Start Time shows the time one hour before end time. |
To specify the time period:
To select the current time as the start time, select local time. |
Number of Events to Display |
Specifies the number of events to be displayed on the View Events page. By default, the View Events page displays 25 events. |
To view a specified number of events, select the number from the list—for example, 50. |
OK |
Applies the specified filter and displays the matching messages. |
To apply the filter, click OK. |