syslogcollector

Use this command to configure setup collection of syslogs.

Configuration Objects

Feature Guides

Syslogcollector Command

syslogcollector <server IP address>

Syslogcollector Command Contexts

Context Description
Facility kern/user/mail/daemon/auth/syslog/local7 Facility Information default: *
Port Port number on which we send syslogs default: 514
Protocol UDP/TCP Transport Protocol to use default: UDP
RestartFlag True/False Restart on Config default: true
Severity emerg/alert/crit/err/warning/notice/info/debug Severity Information default: *
SrcInf Source Port from which the syslogs should reach the receiver default: ma1

Configuration Examples

Specify the IP address of the Syslog server.

localhost(config)#syslogcollector 10.10.10.10
localhost(config-syslogcollector)#

Setting the Attributes

localhost(config-syslogcollector)#Facility user 
localhost(config-syslogcollector)#Protocol TCP
localhost(config-syslogcollector)#Severity warning 

Show the Unapplied Configuration

localhost(config-syslogcollector)#showunapplied 
Pending Config
NOTE: If attribute is not user provisioned default values shown, when config is applied a
read before write action will occur to fill in values of attributes not set by user.

id: 1   object: SyslogCollector   status: PENDING CONFIG  valid: True delete: False num user cmds: 4
 command                        attr               value          model attr      iskey    required    userprov    time provisioned         
--------------------------------------------------------------------------------------------------------------------------------------------
 syslogcollector 10.10.10.10    syslogcollector    10.10.10.10    ServerIpAddr    True     X           X           Wed Aug 23 14:50:35 2017 
 Facility user                  Facility           user           Facility        False                X           Wed Aug 23 15:08:30 2017 
 Protocol TCP                   Protocol           TCP            Protocol        False                X           Wed Aug 23 15:08:45 2017 
 Severity warning               Severity           warning        Severity        False                X           Wed Aug 23 15:09:02 2017 

Applying the Configuration

localhost(config-syslogcollector)#apply
Applying Config:
id: 1   object: SyslogCollector   status: APPLIED CONFIG  valid: True delete: False num user cmds: 4
 command                        attr               value          model attr      iskey    required    userprov    time provisioned         
--------------------------------------------------------------------------------------------------------------------------------------------
 syslogcollector 10.10.10.10    syslogcollector    10.10.10.10    ServerIpAddr    True     X           X           Wed Aug 23 14:50:35 2017 
 Facility user                  Facility           user           Facility        False                X           Wed Aug 23 15:08:30 2017 
 Protocol TCP                   Protocol           TCP            Protocol        False                X           Wed Aug 23 15:08:45 2017 
 Severity warning               Severity           warning        Severity        False                X           Wed Aug 23 15:09:02 2017 

sdk:createSyslogCollector(10.10.10.10,Protocol=TCP,Severity=warning,Facility=user,SrcInf=ma1,RestartFlag=True,Port=514) result: SUCCESS: http status code: 201