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

System management configuration guide
Hide thumbs Also See for Nexus 5000 Series:
Table of Contents

Advertisement

Configuring Syslog Servers
Step 3
Step 4
Step 5
The following examples show how to configure a syslog server:
switch# configure terminal
switch(config)# logging server 172.28.254.254 5
use-vrf default facility local3
switch# configure terminal
switch(config)# logging server 172.28.254.254 5 use-vrf management facility local3

Configuring syslog 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 <five tab characters> action
The following table describes the syslog fields that you can configure.
Table 15: syslog Fields in syslog.conf
Field
Facility
Cisco Nexus 5000 Series NX-OS System Management Configuration Guide, Release 5.2(1)N1(1)
104
Command or Action
no logging server host
Example:
switch(config)# no logging
server 172.28.254.254 5
show logging server
Example:
switch# show logging server
copy running-config
startup-config
Example:
switch(config)# copy
running-config
startup-config
Purpose
(Optional)
Removes the logging server for the specified host.
(Optional)
Displays the syslog server configuration.
(Optional)
Saves the change persistently through reboots and restarts by
copying the running configuration to the startup configuration.
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.
Check your configuration before using a
Note
local facility.
Configuring System Message Logging

Advertisement

Table of Contents
loading

Table of Contents