Configuring Syslog Servers On A Unix Or Linux System - Cisco Nexus 9000 Series Configuration Manual

Nx-os system management configuration guide, release 6.x
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Configuring Syslog Servers on a UNIX or Linux System

Configuring Syslog Servers on a UNIX or Linux System
You can configure a syslog server on a UNIX or Linux system by adding the following line to the
/etc/syslog.conf file:
facility.level
The following table describes the syslog fields that you can configure.
Table 5: Syslog fields in syslog.conf
Field
Facility
Level
Action
Procedure
Step 1
Log debug messages with the local7 facility in the file /var/log/myfile.log by adding the following line to the
/etc/syslog.conf file:
Example:
debug.local7 var/log/myfile.log
Step 2
Create the log file by entering these commands at the shell prompt:
Cisco Nexus 9000 Series NX-OS System Management Configuration Guide, Release 6.x
42
action
<five tab characters>
Configuring System Message Logging
Description
Creator of the message, which can be auth, authpriv,
cron, daemon, kern, lpr, mail, mark, news, syslog,
user, local0 through local7, or an asterisk (*) for all.
These facility designators allow you to control the
destination of messages based on their origin.
Note
Check your configuration before using a
local facility.
Minimum severity level at which messages are
logged, which can be debug, info, notice, warning,
err, crit, alert, emerg, or an asterisk (*) for all. You
can use none to disable a facility.
Destination for messages, which can be a filename,
a hostname preceded by the at sign (@), a
comma-separated list of users, or an asterisk (*) for
all logged-in users.

Advertisement

Table of Contents
loading

Table of Contents