EVOPEDIA

← all systems · see it in The System

Syslog (syslog-based centralised logging)

boundaryInside: the syslog() library call and the logger utility on each host, the local syslog daemon (syslogd, rsyslog, syslog-ng and others) with its configuration rules and queues, the message in its standard formats (PRI with facility and severity, header with timestamp and hostname, the free-text MSG; RFC 3164 and RFC 5424), its transports as syslog defines them (UDP 514, plain TCP, TLS on 6514, RFC 3195 over BEEP on 601, RELP, DTLS), relays and collectors, and the files, consoles and databases it writes to. Outside: the programs and devices whose events it carries (the kernel, daemons, routers, firewalls, intrusion detection), the general transports it rides on (UDP, TCP, TLS, which other walks own), clocks and NTP, the SIEMs and log analysis tools that read its output, the administrators themselves (their rules and purposes, as written into the configuration and served by the top floor, are inside; the people are outside, as the top floor's deeper system Human (Homo sapiens)), and attackers who forge, flood, intercept or erase it.
nested levelA technological system (rung 12): software and a protocol on Unix-like hosts and network devices, running on the operating system's services floor; one of the two major kinds of software a log management infrastructure is built on (NIST); feeding SIEMs, intrusion detection, incident response and audit; its top floor is run by people.
scaletechnological

From the walk

The rulebook for syslog opens with nature, not computers: RFC 3164 starts from living things that send messages needing no reply, and its security section begins with a bolas spider that mimics a female moth's scent so the males that follow it get eaten, 'a case of a false message being sent out with inimical intent', which is exactly what a forged syslog message is (src:rfc3164).

Definition. A standard for message logging that separates the software that generates messages, the system that stores them and the software that reports on them; each message is labelled with a facility code and a severity level (src:wp:syslog). A program or device hands a short text message to a local syslog process, which files it, shows it or forwards it over the network to relays and collectors ('syslog servers'); the protocol 'provides a transport to allow a machine to send event notification messages across IP networks to event message collectors' with no acknowledgement of receipt (src:rfc3164). NIST counts syslog-based centralised logging as one of the two major kinds of log management software, beside SIEM (src:nist-sp800-92). Walked as the practice and the structure together: the message format, the local daemons and their rules and queues, the transports (UDP 514, TCP, TLS 6514, RFC 3195, RELP, DTLS), relays and collectors, the files they write and the people who configure and read them. Definition drawn from the encyclopedia entry (Wikipedia, CC BY-SA).

On this page: Properties 3 · Measures 35 · Open contentions 4 · Cross-scale patterns 21 · Valence partners 19 · Partners and parts 64 · Notes 3 · Layers 63 · Sources 26

Properties published scienceour proposal

Sourced fields, and our own readings.

aliasesSyslog-based centralised logging
born at1980s (no exact year in the sources read)
born precisiondecade

Measures (35) published science

UDP port assigned to syslog514 UDP port
TCP port for syslog over TLS6514 TCP port
port for RFC 3195 reliable syslog601 TCP port
maximum message length (RFC 3164)1024 bytes
minimum message size every receiver must accept480 (must); 2048 (should) octets
safest message size when the path MTU is unknown480 (IPv4); 1180 (IPv6) octets
facility codes24 (0 to 23); 8 severities (0 to 7); priority = facility x 8 + severity codes
timestamp resolution (characteristic clock)seconds (RFC 3164, local time, no year); up to 6 fractional digits (RFC 5424)
sequenceId range1 to 2147483647, then back to 1 messages
messages that can be lost unnoticed in plain TCP syslog's buffersup to about 1,600 (10 to 1,600 at 150 bytes a message; the author's estimate) messages
time for a plain-TCP sender to learn the connection brokeabout 2 hours with keep-alive; later without
RELP application-layer window128 (2008) messages in flight
UDP syslog loss with the receiver flooded (Fast Ethernet, 30-byte messages)90.71% (95,120,439 of 104,857,600 lost); per-hand-off yield about 0.09 % lost
UDP syslog loss with the receiver flooded (Gigabit, 1 KB messages)90.89% (9,530,579 of 10,485,760 lost) % lost
UDP syslog loss at ordinary rates0 at 100 ms intervals (73.5 kbit/s) and at 1 ms intervals (6.8 Mbit/s); per-hand-off yield 1.0 messages lost
UDP syslog loss under flooding with each message sent 99 times43.43% (Fast Ethernet); 43.76% (Gigabit) % lost
link-hours the router syslog could not account for (CENIC, 2004-2009)12.6% (HPR links); 9.5% (DC links); 16% (CPE links) % of link-hours
days missing from a five-year syslog archive176 (2007-09-23 to 2008-03-17) days
timestamp granularity of a central syslog archive1 s
router syslog messages, CENIC, 2004-2009217,498 (over 200 routers) messages
operator-announced failures found in the syslog history34 of 35 sampled (97%) events
syslog volume in a large data centretens of millions a day from more than 10,000 network devices messages per day
router syslog volume in a large ISPmillions a day messages per day
alerts tagged in public supercomputer syslogsmore than 176 million alerts in more than 81 GB
alert detection on the Liberty supercomputer's syslog (term entropy)92% of alerts at 90% precision
Loghub Linux syslog dataset263.9 days; 25,567 lines; 2.25 MB days; lines; MB
standing among logging protocolsthe most widely used, together with SNMP rank
clock-skew example (NIST)event A shown 45 s before B though it came 2 min after
rsyslog paced sending exampleabout 1,000 messages a second with a 1,000-microsecond slow-down and one-message batches; about 100,000 with full 100-message batches messages per second
covert-channel detector accuracyabout 92% (training); about 61% (test)
local log retention on the host (example)about a week (log rotation); weeks to years on the logging server time
journald default per-service rate limit10,000 messages in 30 s per service; further messages in the interval dropped, with a count logged messages per 30 s
interval between syslogd 'mark' messages20 (default) minutes
TCP retransmission give-up threshold R2 (minimum)at least 100 seconds (data); at least 3 minutes for a connection attempt
publications on automated log analysis, 1997-2020158 papers

Open contentions (4) open contention

Where sources or readings disagree. Both stay on the map.

Cross-scale patterns seen here (21) our proposal

Shapes that recur when the same kind of problem is solved at different scales, and how each shows in Syslog (syslog-based centralised logging). Each links to every other system that shows it.

Valence: what it trades, and with whom (19) published science

Each exchange with a neighbour, read from both sides: who gains, who pays, and what carries it.

Partners and parts published science

Built from / builds (8)

Sits inside / holds (3)

expressed by (22)

floor filled by (25)

represents (1)

Kinds (5)

Notes published science

Layers

The ways it takes in its world, where they meet, and how it acts back, each from L1 (where it meets the world) up.

syslog as system administrators and its standards describe it: events on hosts and network devices up to the people who read and act on the record (reader's view)

  1. L1: Events on hosts and network devices: a program starts or exits, a login succeeds or fails, a link goes down, a disk errs; including devices with no storage of their own
  2. L2: The originator composes a message: a facility and a severity (PRI), a timestamp and hostname, a tag and free text, through the syslog library, the logger command or the device's own code
  3. L3: Transport: the local log socket, or the network (UDP 514 with no acknowledgement; plain TCP; TLS on 6514; RFC 3195 or RELP with acknowledgements; DTLS)
  4. L4: Reception and checking at a relay or collector: PRI and timestamp checked, missing fields added, well-formed messages passed on unchanged
  5. L5: Rules and queues: facility and severity (in newer daemons also host, program or content) select actions; queues buffer, spill to disk, throttle or discard
  6. L6: The record: files, consoles, users' terminals, databases, and forwarding to relays and collectors (fan-in)
  7. L7: Purpose, set by the people who run it: sorting the urgent from the routine, troubleshooting, security auditing, forensics, compliance; reading with grep and tail, reports or a SIEM

the boardroom (shared floors)

  1. L5: Selection and queueing: rules match facility and severity (and, in newer daemons, host, program or content) to actions; queues hold messages between input and action, spill to disk, throttle submitters and discard by severity when full
  2. L6: The record and onward: messages written to local files, consoles, users' terminals or databases, mailed, or forwarded to relays and collectors, many devices feeding relatively few collectors
  3. L7: What it is for, set by the people who run it: operations staff sorting problems from routine status, troubleshooting, security auditing, forensics and compliance; they decide what is logged, where it goes and how long it is kept, and read it with grep, tail, reports or a SIEM

way in: Acknowledged delivery (RFC 3195 over BEEP; RELP)

  1. L1: A connection-oriented session over TCP
  2. L2: BEEP supplies authentication, privacy and retransmission; RELP keeps each message until acknowledged
  3. L3: Port 601 for RFC 3195; RELP on its own configured port
  4. L4: Each entry acknowledged, positively or negatively (COOKED); RELP acknowledges every message

way in: Kernel messages (facility 0)

  1. L1: Kernel events at every severity (device errors, driver and network notices), logged under the kernel facility
  2. L2: Logged under the kernel facility (code 0)
  3. L3: The kernel's printk ring buffer, read through /dev/kmsg (or the classic syslog() interface), whole records in order, each with a 64-bit sequence number; overwritten records can be counted as lost
  4. L4: The daemon's kernel log input

way in: Network devices and relays over UDP port 514

  1. L1: A UDP datagram on the network, one message in it; from routers, switches, printers, hosts or relays
  2. L2: UDP and IP checksums; a damaged datagram may be dropped silently
  3. L3: The receiver's UDP port 514, open to any sender unless restricted
  4. L4: The relay or collector checks PRI and TIMESTAMP, forwards a good message unchanged, adds missing fields to others

way in: Non-syslog sources brought in (SNMP traps, converted Windows Event Log, text files)

  1. L1: Hosts or devices that do not speak syslog and cannot be changed to
  2. L4: Accepted in another format (SNMP traps) or converted to syslog by utilities

way in: Plain syslog over TCP (RFC 6587)

  1. L1: A TCP stream from the transport sender; no data flows back at the application level
  2. L2: TCP's acknowledgement, retransmission and flow control, with send() succeeding once data is buffered locally
  3. L3: A port chosen by the operator, most often TCP/514 (assigned to Shell)
  4. L4: Framing: octet-counting, or a trailer character (usually LF) that can split a message

way in: Programs on the host (the syslog() call and the local log socket)

  1. L1: An event in a program or daemon: status at start or exit, or a condition met
  2. L2: The program composes the message (facility, severity, tag, text) through the syslog library or the logger command
  3. L3: The local log socket carries it to the daemon (a reliable local input that can be throttled)
  4. L4: The daemon's socket input takes it in; locally generated and received messages meet the same rules

way in: Syslog over TLS (RFC 5425)

  1. L1: A TCP connection opened by the transport sender, which is always the TLS client
  2. L2: The TLS handshake with certificate-based authentication on both sides (path validation or fingerprints)
  3. L3: TCP port 6514
  4. L4: Each message framed by its length (MSG-LEN SP SYSLOG-MSG) inside TLS application data

way in: The administrators' rules (syslog.conf and its successors)

  1. L1: Decisions about which facility and severity go where, made by the administrator
  2. L2: Written in the configuration file and man pages of each Unix-like host
  3. L3: Read by the daemon at start and again whenever it receives a hangup signal (SIGHUP); rotation tools send the same signal so the daemon reopens its files
  4. L4: Read into the daemon as rules; the same rules must be mirrored on the collectors

way in: The daemon's own state (queues, watermarks, its own messages)

  1. L1: Queued messages held in memory or on disk between reception and action
  2. L2: Queue size read against the high, low and discard watermarks
  3. L4: Messages the syslog process makes about itself (facility 5), including notice that messages were dropped

way in: The host's clock (timestamps)

  1. L1: Time as the host's internal clock keeps it
  2. L2: Synchronised (or not) to an outside time source such as NTP
  3. L3: The TIMESTAMP written in the header: local time with no year or zone (RFC 3164), or RFC 3339 time (RFC 5424); a relay stamps its own if none is valid
  4. L4: The timeQuality element tells the collector whether to trust the sender's time or use its own

way out: Act on an event (traps, pages, e-mails, scripts, a new message)

  1. L1: Administrators alerted by page or e-mail; a program or script started
  2. L6: Some implementations act when certain events are detected

way out: Discard (by severity, by rate, on timeout)

  1. L1: The message is gone; at best the receiver is told that something was dropped
  2. L5: Past the discard watermark, or after the enqueue timeout, messages are dropped, lower severities first

way out: Forward to relays and collectors

  1. L1: On the network toward the next relay or collector, which may be a SIEM's collector
  2. L3: The transport sender puts it on the wire (UDP, TCP, TLS, RELP)
  3. L6: A rule's action forwards chosen messages to another machine

way out: Rotate, overwrite or clear old records

  1. L1: Disk space freed; the oldest records gone
  2. L6: Old entries removed after a date, or a circular file overwritten

way out: Show on the console and users' terminals

  1. L1: Light from the screen to the operator's eyes
  2. L6: A rule sends chosen messages to the console or to logged-in users

way out: Throttle the senders

  1. L1: The originating program waits; held too long, the whole system stands still
  2. L3: The reliable input (TCP, the local log socket) is slowed
  3. L5: A full queue throttles whoever submits; reliable delivery blocks the sender

way out: Write to local files

  1. L1: The file on the host's disk, protected only by the host itself
  2. L6: A rule's action writes the message to a file chosen by facility and severity

Sources (26) published science

Kent, K. & Souppaya, M. (2006). Guide to Computer Security Log Management. NIST Special Publication 800-92. doi:10.6028/NIST.SP.800-92
Lonvick, C. (2001). The BSD syslog Protocol. RFC 3164 (Informational), IETF. doi:10.17487/RFC3164. Sections read: 1-4, 6 (all of Security Considerations), 8, Acknowledgements
Gerhards, R. (2009). The Syslog Protocol. RFC 5424 (Standards Track; obsoletes RFC 3164), IETF. doi:10.17487/RFC5424. Sections read: 1-5, 6 (format and length), 7.1 and 7.3 (timeQuality, meta), 8 (all of Security Considerations) (behind its links)
rsyslog project (2026). Understanding rsyslog Queues. rsyslog documentation (Apache License 2.0). Sections read: queue modes, disk-assisted queues, limiting the queue size, discarding messages, filled-up queues, rate limiting, terminating queues (behind its links)
Syslog (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
Gerhards, R. (2008, updated 2018). On the (un)reliability of plain tcp syslog. Engineering notebook (the author of RFC 5424 and of rsyslog), rainer.gerhards.net (behind its links)
Kelsey, J., Callas, J. & Clemm, A. (2010). Signed Syslog Messages. RFC 5848 (Standards Track), IETF. doi:10.17487/RFC5848. Sections read: abstract, 1 (behind its links)
Miao, F., Ma, Y. & Salowey, J. (eds) (2009). Transport Layer Security (TLS) Transport Mapping for Syslog. RFC 5425 (Standards Track), IETF. doi:10.17487/RFC5425. Sections read: 1-4 (behind its links)
New, D. & Rose, M. (2001). Reliable Delivery for syslog. RFC 3195 (Standards Track), IETF. doi:10.17487/RFC3195. Sections read: abstract, 1, 2 (the model), the port registration (behind its links)
Okmianski, A. (2009). Transmission of Syslog Messages over UDP. RFC 5426 (Standards Track), IETF. doi:10.17487/RFC5426 (behind its links)
Anton, A. A., Csereoka, P., Capota, E. A. & Cioarga, R. D. (2024). Enhancing Syslog Message Security and Reliability over Unidirectional Fiber Optics. Sensors (Basel). doi:10.3390/s24206537 (PMC11510748, CC BY) (behind its links)
Turner, D., Levchenko, K., Snoeren, A. C. & Savage, S. (2010). California fault lines: understanding the causes and impact of network failures. ACM SIGCOMM 2010. doi:10.1145/1851182.1851220. Sections read: 1-4 (data sources, methodology, validation) (behind its links)
Zhang, S., Liu, Y., Meng, W., Bu, J., Yang, S., Sun, Y., Pei, D., Xu, J., Zhang, Y., Song, L. & Zhang, M. (2020). Efficient and Robust Syslog Parsing for Network Devices in Datacenter Networks. IEEE Access 8:30245-30261. doi:10.1109/ACCESS.2020.2972691. Sections read: I-IV (behind its links)
Qiu, T., Ge, Z., Pei, D., Wang, J. & Xu, J. (2010). What happened in my network: mining network events from router syslogs. ACM IMC 2010. doi:10.1145/1879141.1879202 (abstract only: the paper portal reached no body; used for a passing fact) (behind its links)
Oliner, A. J., Aiken, A. & Stearley, J. (2008). Alert Detection in System Logs. 2008 Eighth IEEE International Conference on Data Mining (ICDM). doi:10.1109/ICDM.2008.132 (text read from the OSTI record, dated 2016 there). Sections read: introduction, related work, the challenge, data (behind its links)
Zhu, J., He, S., He, P., Liu, J. & Lyu, M. R. (2023). Loghub: A Large Collection of System Log Datasets for AI-driven Log Analytics. ISSRE 2023. doi:10.1109/ISSRE59848.2023.00071. Sections read: dataset descriptions (Linux, BGL, Thunderbird), log parsing benchmark, compression (behind its links)
Lamshoft, K., Neubert, T., Hielscher, J., Vielhauer, C. & Dittmann, J. (2022). Knock, knock, log: Threat analysis, detection & mitigation of covert channels in syslog using port scans as cover. Forensic Science International: Digital Investigation. doi:10.1016/j.fsidi.2022.301335 (behind its links)
systemd project. journald.conf(5), systemd manual (latest). Sections read: Storage, RateLimitIntervalSec/RateLimitBurst, ForwardToSyslog, forwarding to traditional syslog (behind its links)
FreeBSD Project. syslogd(8), FreeBSD System Manager's Manual (current man page, man.freebsd.org) (behind its links)
RFC 1122, Requirements for Internet Hosts: Communication Layers (1989) (behind its links)
He, S., He, P., Chen, Z., Yang, T., Su, Y. & Lyu, M. R. (2021). A Survey on Automated Log Analysis for Reliability Engineering. ACM Computing Surveys. doi:10.1145/3460345. Sections read: introduction, survey method, log storage, open-source tools and datasets (behind its links)
Ma, D. & Tsudik, G. (2008). A New Approach to Secure Logging. Lecture Notes in Computer Science (Data and Applications Security). doi:10.1007/978-3-540-70567-3_4. Sections read: 1-3 (state of the art, the truncation and delayed-detection attacks, FssAgg) (behind its links)
Gerhards, R. & Lonvick, C. (2012). Transmission of Syslog Messages over TCP. RFC 6587 (Historic), IETF. doi:10.17487/RFC6587. Sections read: 1-6 (behind its links)
Sievers, K. (2012). /dev/kmsg. Linux kernel documentation, Documentation/ABI/testing/dev-kmsg (kernel 3.5) (behind its links)
Rsyslog (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
Lonvick, C., Turner, S. & Salowey, J. (2024). Updates to the Cipher Suites in Secure Syslog. RFC 9662 (Standards Track; updates RFC 5425 and RFC 6012), IETF. doi:10.17487/RFC9662 (behind its links)