Syslog

Überwachung

Definition

Ein Standardprotokoll (RFC 5424) zur Übertragung von Log-Nachrichten von Netzwerkgeräten, Servern und Anwendungen an einen zentralen Log-Collector. Syslog-Nachrichten enthalten Schweregrade von Notfall (0) bis Debug (7).

The Syslog Protocol

Syslog (RFC 5424) is the standard mechanism for devices and applications to emit log messages to a centralized collector. Each message carries a facility (what generated the log — kernel, mail, daemon, local0-7) and a severity (Emergency, Alert, Critical, Error, Warning, Notice, Informational, Debug). The combination encodes into a single numeric priority value. Syslog messages travel over UDPUser Datagram Protocol. A connectionless transport protocol that sends datagrams without establishing a connection or guaranteeing delivery. Faster than TCP, it is preferred for real-time applications like DNS queries, VoIP, gaming, and streaming. port 514 (unreliable but lightweight) or TCPTransmission Control Protocol. A reliable, connection-oriented transport protocol that guarantees ordered, error-checked delivery of data through three-way handshakes, acknowledgments, and retransmission. The foundation of HTTP, SSH, and most internet services. port 514/6514 with SSL/TLSSecure Sockets Layer / Transport Layer Security. Cryptographic protocols that provide encrypted, authenticated communication over a network. SSL is deprecated; modern implementations use TLS 1.2 or TLS 1.3. for reliable, encrypted transport.

Centralized Log Collection

Individual routers, Access PointA networking device that creates a wireless local area network (WLAN) by connecting wireless clients to a wired network. Unlike repeaters, access points are wired to the network backbone, providing full bandwidth to connected clients. controllers, firewalls, servers, and application processes all emit syslog to a central syslog server (rsyslog, syslog-ng, Graylog, Splunk). Centralization enables correlation — a firewall log showing a blocked connection paired with a SNMP TrapAn unsolicited notification sent by an SNMP agent on a network device to a management station when a significant event occurs (e.g., link down, high CPU). Unlike SNMP polling, traps provide immediate event-driven alerts. from the same device and an application error from the target server tells a complete incident story across three sources.

Syslog vs. Structured Logging

Traditional syslog messages are unstructured text — human-readable but difficult to parse programmatically. RFC 5424 introduced structured data elements (key-value pairs within the message), but adoption is inconsistent. Modern observability pipelines augment syslog with NetFlowA Cisco-developed protocol that collects metadata about IP network traffic flows (source/destination IP, ports, protocol, byte count) for analysis. NetFlow data is essential for bandwidth monitoring, capacity planning, and security forensics. for network telemetry and application-level tracing. IPFIXIP Flow Information Export. An IETF standard based on Cisco NetFlow v9 that defines a protocol for exporting flow records from routers and switches. IPFIX is the vendor-neutral successor to proprietary flow export protocols. offers a standardized alternative for network flow data that complements syslog's event narrative. Retention policies for syslog data must balance storage costs against compliance requirements — security regulations often mandate 90-day or 1-year retention.

Verwandte Begriffe

Mehr in Überwachung