Log Collectors and Syslog


  • an event on a device is logged to the console or a file
    • accessing each device is impractical on large network
  • a log collector receives event messages forwarded from devices to a single storage location
    • can run status and alerting dashboards
    • a secure log server is called a bastion host

Syslog

Syslog is an application protocol and event logging format enabling different appliances and software applications to transmit logs or event records to a central server.

  • facilitates log collection
  • de facto standard for logging events from distributed systems
  • works on Cisco and UNIX/Linux
  • listens on UDP port 514
  • is a protocol and an open format for event data
    • syslog message comprises:
      • PRI code
        • calculated from the facility and a severity level
        • Facility
          • is a 24-bit code that describes where the message came from using a number between 0-23
        • Severity
          • is an importance value from 0-7
      • header
        • contains timestamp and host name
      • message
        • contains a tag showing the source process plus content
        • format of content is application dependent
          • can be space or comma delimited, name/value pairs, or JSON

Syslog Severity Levels

CodeLevelInterpretation
0EmergencyThe system is unusable (kernel panic).
1AlertA fault requiring immediate remediation has occurred.
2CriticalA fault that will require immediate remediation is likely to develop.
3ErrorA nonurgent fault has developed.
4WarningA nonurgent fault is likely to develop.
5NoticeA state that could potentially lead to an error condition has developed.
6InformationalA normal but reportable event has occurred.
7DebugVerbose status conditions used during development and testing