Syslog
The Syslog feature allows event notifications from NFVIS to be sent to remote syslog servers for centralized log and event collection.The syslog messages are based on the occurrence of specific events on the device and provide configuration and operational information such as creation of users, changes to the interface status, and failed login attempts. Syslog data is critical to recording day-to-day events as well as notifying operational staff of critical system alerts.
Cisco enterprise NFVIS sends syslog messages to syslog servers configured by the user. Syslogs are sent for Network Configuration Protocol (NETCONF) notifications from NFVIS.
Syslog Message Format
Syslog messages have the following format:
<Timestamp> hostname %SYS-<Severity>-<Event>: <Message>
Sample Syslog messages:
2017 Jun 16 11:20:22 nfvis %SYS-6-AAA_TYPE_CREATE: AAA authentication type tacacs created successfully AAA authentication set to use tacacs server
2017 Jun 16 11:20:23 nfvis %SYS-6-RBAC_USER_CREATE: Created rbac user successfully: admin
2017 Jun 16 15:36:12 nfvis %SYS-6-CREATE_FLAVOR: Profile created: ISRv-small
2017 Jun 16 15:36:12 nfvis %SYS-6-CREATE_FLAVOR: Profile created: ISRv-medium
2017 Jun 16 15:36:13 nfvis %SYS-6-CREATE_IMAGE: Image created: ISRv_IMAGE_Test
2017 Jun 19 10:57:27 nfvis %SYS-6-NETWORK_CREATE: Network testnet created successfully
2017 Jun 21 13:55:57 nfvis %SYS-6-VM_ALIVE: VM is active: ROUTER
Note |
To refer to the complete list of syslog messages, see Syslog Messages |
Configure a Remote Syslog Server
To send syslogs to an external server, configure its IP address or DNS name along with the protocol to send syslogs and the port number on the syslog server.
To configure a remote Syslog server:
configure terminal
system settings logging host 172.24.22.186
port 3500
transport tcp
commit
Note |
A maximum of 4 remote syslog servers can be configured. The remote syslog server can be specified using its IP address or DNS name. The default protocol for sending syslogs is UDP with a default port of 514. For TCP, the default port is 601. |
Configure Syslog Severity
The syslog severity describes the importance of the syslog message.
To configure syslog severity:
configure terminal
system settings logging severity <debug | informational | notice | warning| error| critical | alert | emergency>
Severity Level |
Description |
Numeric Encoding for Severity in the Syslog Message Format |
---|---|---|
debug |
Debug-level messages |
7 |
informational |
Informational messages |
6 |
notice |
Normal but significant condition |
5 |
warning |
Warning conditions |
4 |
error |
Error conditions |
3 |
critical |
Critical conditions |
2 |
alert |
Take action immediately |
1 |
emergency |
System is unusable |
0 |
Note |
By default, the logging severity of syslogs is informational which means all syslogs at informational severity and higher will be logged. Configuring a value for severity will result in syslogs at the configured severity and syslogs which are more severe than the configured severity. |
Configure Syslog Facility
The syslog facility can be used to logically separate and store syslog messages on the remote syslog server. For example, syslogs from a particular NFVIS can be assigned a facility of local0 and can be stored and processed in a different directory location on the syslog server. This is useful to separate it from syslogs with a facility of local1 from another device.
To configure syslog facility:
configure terminal
system settings logging facility local5
Note |
The logging facility can be changed to a facility from local0 to local7 By default, NFVIS sends syslogs with the facility of local7 |
Syslog Support APIs and Commands
APIs |
Commands |
---|---|
|
|