Cisco Logging

From HackerNet
Revision as of 13:00, 16 April 2016 by Helikopter (talk | contribs) (Helikopter moved page Cisco Syslog to Cisco Logging without leaving a redirect)
Jump to: navigation, search

Syslog är en standard för message logging, även om inte strukturen på meddelandena är standardiserad. Syslog använder default UDP port 514.

Format

Man kan använda lite olika format på sina syslogmeddelanden
Utan tidsstämpel

%LINK-3-UPDOWN: Interface Port-channel1, changed state to up

service timestamps log uptime

00:00:46: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up

service timestamps log datetime

*Feb  8 18:24:02: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up

service timestamps log datetime msec

*Feb  8 18:24:02:355 %LINK-3-UPDOWN: Interface Port-channel1, changed state to up

IOS

logging on

Set syslog server logging level, 0-7.

logging trap ?

Source

logging origin-id HOSTNAME
logging source-interface Loopback 0

Bytt protokoll och port

logging host 1.1.1.1 transport tcp port 5514

Persistent, no buffering

logging persistent immediate

NX-OS

NX-OS har lite annan struktur på syslog

2016 Feb  8 18:41:55.911853  DC01-SW02  %BGP-3-UNEXPECT:  the-message...