Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

show log

 

List of Syntax

Syntax

Syntax (QFX Series and OCX Series)

Syntax (TX Matrix Router)

Syntax

Syntax (QFX Series and OCX Series)

Syntax (TX Matrix Router)

Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 9.0 for EX Series switches.

Command introduced in Junos OS Release 11.1 for the QFX Series.

Option device-type (device-id | device-alias) is introduced in Junos OS Release 13.1 for the QFX Series.

Command introduced in Junos OS Release 14.1X53-D20 for the OCX Series.

Description

List log files, display log file contents, or display information about users who have logged in to the router or switch.

Note

On MX Series routers, modifying a configuration to replace a service interface with another service interface is treated as a catastrophic event. When you modify a configuration, the entire configuration associated with the service interface—including NAT pools, rules, and service sets—is deleted and then re-created for the newly specified service interface. If there are active sessions associated with the service interface that is being replaced, these sessions are deleted and the NAT pools are then released, which leads to the generation of the NAT_POOL_RELEASE system log messages. However, because NAT pools are already deleted as a result of the catastrophic configuration change and no longer exist, the NAT_POOL_RELEASE system log messages are not generated for the changed configuration.

Options

noneList all log files.
<all-lcc | lcc number | scc>(Routing matrix only)(Optional) Display logging information about all T640 routers (or line-card chassis) or a specific T640 router (replace number with a value from 0 through 3) connected to a TX Matrix router. Or, display logging information about the TX Matrix router (or switch-card chassis).
device-type(QFabric system only) (Optional) Display log messages for only one of the following device types:
  • director-device—Display logs for Director devices.

  • infrastructure-device—Display logs for the logical components of the QFabric system infrastructure, including the diagnostic Routing Engine, fabric control Routing Engine, fabric manager Routing Engine, and the default network Node group and its backup (NW-NG-0 and NW-NG-0-backup).

  • interconnect-device—Display logs for Interconnect devices.

  • node-device—Display logs for Node devices.

Note

If you specify the device-type optional parameter, you must also specify either the device-id or device-alias optional parameter.

(device-id | device-alias)If a device type is specified, display logs for a device of that type. Specify either the device ID or the device alias (if configured).
filename(Optional) Display the log messages in the specified log file. For the routing matrix, the filename must include the chassis information.
Note

The filename parameter is mandatory for the QFabric system. If you did not configure a syslog filename, specify the default filename of messages.

user <username>(Optional) Display logging information about users who have recently logged in to the router or switch. If you include username, display logging information about the specified user.

Required Privilege Level

trace

Related Documentation

List of Sample Output

show log

show log filename

show log filename (QFabric System)

show log user

Sample Output

show log

user@host> show log

show log filename

user@host> show log rpd

show log filename (QFabric System)

user@qfabric> show log messages

show log user

user@host> show log user