Configuring Syslog Service

By default, syslog logging is enabled and up to 4000 messages are retained in the local syslog buffer.
  1. Enter global configuration mode.
    device# configure terminal
  2. Specify a syslog server.
    device(config)# logging host 10.0.0.99
  3. Change the message level the system logs by disabling logging of specific message levels.
    device(config)# no logging buffered debugging
    device(config)# no logging buffered informational
    You must disable the message levels on an individual basis. In the example, the system does not log debugging and informational messages.
  4. Change the number of messages the local syslog buffer can hold by using the logging buffered command.
    device(config)# logging buffered 1000
    device(config)# write memory
    device(config)# exit
    device# reload

    The syslog buffer limit ranges from 1 through 4000 entries. In the example, the syslog buffer can store up to 1000 entries.

    You must save the configuration and reload the software to place any changes into effect.

  5. Set a threshold value for logging buffer based on which a syslog warning message is generated when the log entries exceed the specified threshold value. The threshold value is in percentage.
    device(config)# logging buffered threshold 50
  6. Change the log facility by using the logging facility command.
    device(config)# logging facility local0
    In the example, the log facility is changed to local0. "User" is the default log facility for messages sent by the RUCKUS ICX device to the syslog server. You can specify only one facility. If you configure the RUCKUS ICX device to use two syslog servers, the device uses the same facility on both servers.
  7. Display the interface names in syslog messages.
    device(config)# ip show-portname
    The ip show-portname command is applied globally to all interfaces on ICX switches. By default, syslog messages show the interface type. If a port name is configured and assigned a name, then the port name is displayed.
  8. Display the syslog configuration from privileged EXEC mode.
    device# show logging
  9. Configure the device to save the syslog messages after a soft reboot.
    device(config)# logging persistence
    Using the logging persistence command does not save the syslog messages after a hard reboot.
  10. Clear the local syslog buffer from privileged EXEC mode.
    device# clear logging

The following example shows how to configure syslog messages where logging is disabled for debugging messages. Logging parameters are configured.

device(config)# configure terminal
device(config)# logging host 10.0.0.99
device(config)# no logging buffered debugging
device(config)# logging buffered 1000
device(config)# write memory
device(config)# exit
device# reload
device(config)# logging facility local0
device(config)# ip show-portname
device# show logging
device(config)# logging persistence
device# clear logging