Configuring a syslog server using the CLI

Prev Next

This topic describes how to use CLI commands to specify a syslog server for log messages on the Central Management System appliance. For a full list of logging commands and the usage and parameters, see the CLI Command Reference.

Prerequisites
  • Admin access

To specify a syslog server:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. To specify a syslog server to which logging messages are sent, use the logging <serverAddress> command, where <serverAddress> is the server IP address. For example:

    hostname (config) # logging 10.10.20.62
  3. Verify your changes:

    hostname (config) # show logging
    Local logging level:                   notice
       Override for class mgmt-back:       notice
       Override for class mgmt-front:      notice
    Remote syslog default level:           notice
    Remote syslog servers:
       10.10.20.62                         notice
          protocol:                        udp
          port:                            514
    [ . . . ]
  4. Save your changes.

    hostname (config) # write memory