Log events overview
This section provides general information about the log events described in this guide for the Service Router Linux (SR Linux).
For more information about logging, see the SR Linux Configuration Basics Guide.
Log event format
Log events that are forwarded to a destination are formatted. All application-generated events have the following format:
-
time stamp in UTC or local time
-
generating application
-
hostname of the local system
-
subsystem identifying the affected object
-
short message describing the event
A log event with a memory, console, or file destination has the following format:
<TIMESTAMP> <HOSTNAME> <APPLICATION>: <SUBSYSTEM>|<PID>|<SEVERITY>: <MESSAGE>
The log event format is described in Log event format descriptions.
|
Label |
Description |
|---|---|
|
TIMESTAMP |
UTC or local date stamp for the log event entry: YYYY — Year MM — Month DD — Day HH — Hours (24-hour format) MM — Minutes SS.SS — Seconds.hundredths of a second |
|
<HOSTNAME> |
System hostname |
|
<APPLICATION> |
Name of the application generating the log event message |
|
<SUBSYSTEM> |
Name of the subsystem generating the log event message |
|
<PID> |
Process ID |
|
<SEVERITY> |
A single character indicating how critical the message is (I stands for Informational, W stands for Warning, and so on) |
|
<MESSAGE> |
Text description of the log event |
Example log event
The following contains an example log event entry from this guide for the bgpNeighborBackwardTransition log event.
|
Property name |
Value |
|---|---|
|
Application name |
bgp |
|
Event name |
bgpNeighborBackwardTransition |
|
Default severity |
warning |
|
Message format string |
In network-instance $network-instance$, the BGP session with $peer-address$ moved from higher state $last-state$ to lower state $session-state$ due to event $last-event$ |
|
Cause |
No routes can be exchanged with this peer |
|
Effect |
N/A |
The table title for a log event entry is the event name. Each entry contains the information described in the table that follows.
|
Label |
Description |
|---|---|
|
Application name |
Name of the application generating the log message |
|
Event name |
Name of the log event |
|
Default severity |
Severity level of the log event (see Log event format descriptions for the severity level) |
|
Message format string |
Text description of the log event |
|
Cause |
Cause of the log event |
|
Effect |
Effect of the log event |
| Raising event | When the event is a facility alarm, the event that raises the alarm |
| Clearing event | When the event is a facility alarm, the event that clears the alarm |