Configuring remote logging of Linux shell activities

By default, SLX-OS logs Linux shell commands both locally (in /var/log/shell_activity.log) and remotely, on the Syslog server.

About this task

From SLX-OS CLI, you can perform the following tasks to control the logging of commands executed at the Linux shell to a remote Syslog server. These tasks do not affect the local logging.
Note

Note

Changes of the log-shell stop and log-shell start commands are applicable only on new Linux shell sessions.

Procedure

  1. To disable remote logging, enter log-shell stop.
    device# log-shell stop
    Local logging of user activities continues.
  2. To restart remote logging, enter log-shell start.
    device# log-shell start
  3. To check the remote logging status, enter log-shell status.
    device# log-shell status
    When remote logging is enabled, the following message is displayed.
    Linux shell activity logging : Enabled