Viewing SMC server logs

The SMC server provides two types of logs:

  • server.log: lists all actions saved on the SMC server. This file may be read from the server's web interface and from the command line interface using the nlogs command.
  • audit.log: lists all actions performed by an administrator on the server. This file may be read from the server's web interface and from the command line interface using the alogs command.

To view server logs from the web interface:

  1. Show the Maintenance > Server logs menu or show and hide the logs at any time by clicking on the black arrow at the bottom of the interface Arrow to show logs panel.
  2. Move the cursor to select the minimum number of logs to display, from the least to the most critical: information, warning or error.

    A maximum of 1000 lines can be displayed. When the limit is reached, the oldest logs are replaced with the most recent ones in the interface.

  1. To view the entire contents of the file, connect to the SMC server via the console of your hypervisor or in SSH and enter the command nlogs.

To view audit logs from the web interface:

  1. Show the Maintenance > Audit logs menu or show and hide the logs at any time by clicking on the black arrow at the bottom of the interface Arrow to show logs panel.
  2. You can show the Details column, which is hidden by default.

NOTE
The SMC server keeps logs of the past 12 weeks up to 100 MB per file. To provide legally required archiving for a year, send logs to a remote Syslog server.

To find out how to send logs to a remote Syslog server, refer to the section Sending SMC logs to a remote server in Syslog format.