Setting The Logging Buffer Size; Limiting The Number Of Syslog Messages; Configuring The Syslog Daemon On A Unix Syslog Server - Cisco WS-C2950SX-48-SI Configuration Manual

Catalyst 4500 series switches
Hide thumbs Also See for WS-C2950SX-48-SI:
Table of Contents

Advertisement

Chapter 37
Configuring System Message Logging

Setting the Logging Buffer Size

To set the number of messages to log to the logging buffer, perform this task in privileged mode:
Task
Step 1
Set the number of messages to log to the logging
buffer.
Step 2
Verify the system message logging configuration. show logging [noalias]
This example shows how to set the logging buffer size to 200 messages:
Console> (enable) set logging buffer 200
System logging buffer size set to <200>
Console> (enable)

Limiting the Number of syslog Messages

You can limit the number of syslog messages that are sent to the history table and the SNMP network
management station based on severity. The default severity is set to warnings(4).
To limit the number of syslog messages, perform this task in privileged mode:
Task
Step 1
Limit the number of syslog messages.
Step 2
Verify the system message logging configuration. show logging
This example shows how to limit the number of syslog messages to messages with a severity level of
notifications(5):
Console> (enable) set logging history severity 5
System logging history set to severity <5>
Console> (enable)

Configuring the syslog Daemon on a UNIX syslog Server

Before you can send system log messages to a UNIX syslog server, you must configure the syslog
daemon on a UNIX server.
To configure the syslog daemon, follow these steps:
Step 1
Log in to the UNIX server as root.
Step 2
Add a line such as the following to the file /etc/syslog.conf:
user.debug
Note
78-15486-01
/var/log/myfile.log
There must be five tab characters between user.debug and /var/log/myfile.log. Refer to entries
in the /etc/syslog.conf file for further examples.
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
Configuring System Message Logging on the Switch
Command
set logging buffer buffer_size
Command
set logging history severity severity_level
Release 8.1
37-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents