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.