hit counter script

Logging Messages To A Unix Syslog Daemon - Cisco Catalyst 9400 System Management Configuration Manual

Cisco ios xe bengaluru 17.4.x
Hide thumbs Also See for Catalyst 9400:
Table of Contents

Advertisement

Logging Messages to a UNIX Syslog Daemon

Step 4
Logging Messages to a UNIX Syslog Daemon
This task is optional.
Note
Some recent versions of UNIX syslog daemons no longer accept by default syslog packets from the network.
If this is the case with your system, use the UNIX man syslogd command to decide what options must be
added to or removed from the syslog command line to enable logging of remote syslog messages.
Before you begin
• Log in as root.
• Before you can send system log messages to a UNIX syslog server, you must configure the syslog daemon
Procedure
Step 1
Step 2
System Management Configuration Guide, Cisco IOS XE Bengaluru 17.4.x (Catalyst 9400 Switches)
268
Command or Action
Device(config)# logging history size 200
end
Example:
Device(config)# end
on a UNIX server.
Command or Action
Add a line to the file /etc/syslog.conf.
Example:
local7.debug /usr/adm/logs/cisco.log
Enter these commands at the UNIX shell
prompt.
Example:
$ touch /var/log/cisco.log
$ chmod 666 /var/log/cisco.log
Configuring System Message Logs
Purpose
The default is to store one message. The range
is 0 to 500 messages.
Returns to privileged EXEC mode.
Purpose
• local7 Specifies the logging facility.
• debug Specifies the syslog level. The
file must already exist, and the syslog
daemon must have permission to write to
it.
Creates the log file. The syslog daemon sends
messages at this level or at a more severe level
to this file.

Advertisement

Table of Contents
loading

Table of Contents

Save PDF