Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




Hierarchy Level


Configure the logging of commands executed from the shell.

Additional Information

To log command executed from the shell configure shell logging by including the system syslog shell statement at the [edit] hierarchy.By default log entries are written to the messages log file.

In Junos OS Evolved, audit-sh prompt gets displayed when you enable the feature and perform start shell from CLI environment. In Junos OS, audit-sh doesn’t get displayed.


In Junos OS Evolved, audit-sh gets displayed in the audit shell prompt when you enable the feature.


A variety of standard syslog options are supported with the shell logging option. See syslog (System) for details.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Evolved Release 23.1R1.