Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

syslog

Direct answer

Syslog is the standard log message format and protocol: each message has a facility (kern, auth, daemon, local0–7 …), a severity (0 emerg to 7 debug), a timestamp, host and text, sent on UDP/TCP 514 (RFC 5424).

When to use this

Use it to understand log levels and facilities when filtering, routing or forwarding logs.

First 30 seconds

1. Which facility and severity does the sender use?

2. Receiver rule matches them? (grep -r local0 /etc/rsyslog.d).

3. Port open: ss -ulnp | grep 514.

4. Capture: tcpdump -n port 514 — messages arriving?

5. Check the destination file.

Operational verification

sender tags facility and severity → message sent on 514 → receiver filters → stored

Evidence · next step

For Logging → syslog, continue with the first unproven Topic check: Identify local socket or network transport and which daemon owns the receiving endpoint. If that boundary is healthy, advance to the adjacent check: Verify facility/severity and header fields on a known message instead of inferring them from filename. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Scope / prerequisiteUse it to understand log levels and facilities when filtering, routing or forwarding logs.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

producer → syslog API/socket/network send → PRI/header formation → local/remote collector → parse/rules → persistence/index → query → correlation with workload

Healthy evidence: the intended message preserves expected source, timestamp, facility/severity and content through the required local or network collector path and can be retrieved at the acceptance destination.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Identify local socket or network transport and which daemon owns the receiving endpoint.

  • Verify facility/severity and header fields on a known message instead of inferring them from filename.
  • For network syslog, show source/destination, transport, listener and receiver-side arrival.
  • Correlate the exact syslog record with process/service/workload state before assigning causation.

Verification chain. producer → syslog API/socket/network send → PRI/header formation → local/remote collector → parse/rules → persistence/index → query → correlation with workload

Step 3 Commands Verify boundary
logger -t myapp 'test message'
tail /var/log/syslog   # Debian
tail /var/log/messages # RHEL
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: UDP transmission is assumed delivered, facility is inferred from destination file, parser rewrites are ignored, or message existence is confused with root cause.

Step 5 Common mistakes Narrow the fault
  • Logs without time sync across hosts.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points

Severity filters include everything at that level and more severe (*.warning). Network devices usually send to local0–7. Plain UDP syslog can lose messages and is unencrypted — use TCP or TLS where it matters.

Key checks
  • journalctl -b -p warning — warnings and errors since boot
  • journalctl -u <unit> -f — follow one unit's log
  • ls -lh /var/log — log files and sizes
  • logger -p user.info test — send a test message
ReferenceWhat it is1 section · depth on demand

Core model

Identify the actual producer API and transport rather than assuming every log file is syslog. Preserve PRI/facility/severity, hostname/app identity and timestamp through the path, and distinguish local submission from collector receipt and downstream indexing.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

A syslog record shows an emitted/received message within its path and metadata scope, but it does not show message completeness, reliable delivery on every transport, causation or service health.

In depth

Syslog: the message format and its fields

Syslog is the standard way to send log messages between programs and hosts. RFC 5424 defines the modern message format:

  • PRI: facility × 8 + severity, in angle brackets.
  • VERSION: 1.
  • TIMESTAMP: RFC 3339, with time zone.
  • HOSTNAME, APP-NAME, PROCID and MSGID.
  • STRUCTURED-DATA in square brackets.
  • MSG: the free text.

The RFC requires implementations to support TLS transport, and recommends UDP for compatibility. It also notes that syslog provides no delivery acknowledgement, so messages can be lost.

Severities and facilities

SeverityCodeFacilityCode
emerg0kern0
alert1user1
crit2mail2
err3daemon3
warning4auth4
notice5syslog5
info6cron9
debug7authpriv10
local0–local716–23

Computing PRI

<165> means facility 20 (local4) and severity 5 (notice), because 20 × 8 + 5 = 165. Reading PRI tells you how a receiver will classify a message.

RFC 3164 and RFC 5424

RFC 3164 ("BSD syslog")RFC 5424
TimestampNov 28 14:02:11, no year or zoneRFC 3339 with zone and fractions
StructureFree text after the tagFixed header + structured data
Common inNetwork devices, older softwareModern daemons, rsyslog templates

Transports

TransportPortNotes
UDP514Simple; lost messages go unnoticed
TCP514 (convention)Reliable while connected
TLS6514Encrypted and authenticated (RFC 5425)
host$ logger -p local4.notice -t backup "nightly backup finished"
host$ logger --rfc5424 -n logs.example.net -P 514 -T -p auth.warning "test from $(hostname)"
analyst$ sudo tcpdump -ni eth0 -A -c 1 'udp port 514' | tail -1
<165>1 2026-11-28T14:02:11.104+01:00 srv1 backup - - - nightly backup finished
host$ journalctl -t backup -o verbose -n 1 | grep -E "PRIORITY|SYSLOG_FACILITY|SYSLOG_IDENTIFIER"
    PRIORITY=5
    SYSLOG_FACILITY=20
    SYSLOG_IDENTIFIER=backup

Reading the capture

The packet shows <165>1 (local4.notice, version 1), an RFC 3339 timestamp, the host name srv1 and the app name backup. The - characters mark empty PROCID, MSGID and STRUCTURED-DATA. The journal stores the same facility and severity in its own fields.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

syslog is part of Logging → syslog. Syslog is the message model and transport convention behind many Linux logs: messages carry priority derived from facility and severity plus header/application metadata, then traverse local sockets or network transports to a collector whose parsing and retention must be verified separately.

Runtime state ownership and mechanics. Linux logging is a pipeline from kernel/application producers through journald and/or syslog daemons into volatile or persistent stores, forwarding targets and rotation/retention policy.

Topic-specific state model. Syslog is the message model and transport convention behind many Linux logs: messages carry priority derived from facility and severity plus header/application metadata, then traverse local sockets or network transports to a collector whose parsing and retention must be verified separately.

Technical metadata. Host/distribution/systemd/rsyslog versions, boot ID, monotonic/realtime timestamp and timezone, NTP/clock state where relevant, producer binary/service/unit/PID/UID, logging transport/API, journal transport/facility/severity/priority, syslog source/destination/transport, file path/device/inode/ownership/permissions, journald storage/rate limits/retention, rsyslog input/ruleset/action/queue, logrotate rule/state/inode handoff, forwarding destination/receiver status, query filters, correlation ID/request ID and original workload result.

Interpretation rule. - File under /var/log ≠ message necessarily used syslog transport.

  • Facility/severity label ≠ business impact or root-cause severity.
  • Local /dev/log submission ≠ collector persisted the event.
  • UDP send ≠ receiver acknowledgement or delivery evidence.

Quick reference

Syslog basics: each message has a facility (source) and severity.

SeverityNumber
emerg0
alert1
crit2
err3
warning4
notice5
info6
debug7

Facilities: kern, user, mail, daemon, auth, authpriv, cron, local0–local7 (often network devices). Selector authpriv.* matches all severities of a facility; *.err all facilities at err or worse.

logger -p local3.err -t netdev 'interface down'
journalctl -p err -b

Transport: UDP 514 (lossy), TCP 514/6514 (TLS).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. A syslog record shows an emitted/received message within its path and metadata scope, but it does not show message completeness, reliable delivery on every transport, causation or service health.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Configuration intent and lifecycle. Decide which component owns retention and forwarding before changing both journald and rsyslog rules. Rotation policy must match daemon reopen behavior.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Logging → syslog. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://systemd.io/ · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
syslog linuxfacility severitydev logremote syslog
Embedded reference data

Quick lookup tables

syslog operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for syslog.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateSyslog is the message model and transport convention behind many Linux logs: messages carry priority derived from facility and severity plus header/application metadata, then traverse local sockets or network transports to a collector whose parsing and retention must be verified separately.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin host + boot ID + clock/timezone + event → identify producer/process → identify logging API/socket/file → verify collector receipt → inspect filtering/rate-limit → prove persistence/inode → verify rotation/retention → verify forwarding/remote receipt if required → query exact time/source → correlate with original workload.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainproducer → syslog API/socket/network send → PRI/header formation → local/remote collector → parse/rules → persistence/index → query → correlation with workloadTrace requested/configured state through effective state to the observed workload result.
Failure boundaryA syslog record proves an emitted/received message within its path and metadata scope; it does not prove message completeness, reliable delivery on every transport, causation or service health.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux logging evidence can establish this proof path: producer → syslog API/socket/network send → PRI/header formation → local/remote collector → parse/rules → persistence/index → query → correlation with workloadUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured producer, collection, persistence, retention, forwarding, query or workload scope. A syslog record proves an emitted/received message within its path and metadata scope; it does not prove message completeness, reliable delivery on every transport, causation or service health.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven boundary: reproduce one exact event, align clock/boot/source identity, trace it through collection and storage, then verify retention/forwarding/query scope and independently repeat the original workload.Continue to the next unresolved boundary while preserving the original test condition.

syslog · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundarysyslog
Topic pathLogging → syslog
Runtime stateSyslog is the message model and transport convention behind many Linux logs: messages carry priority derived from facility and severity plus header/application metadata, then traverse local sockets or network transports to a collector whose parsing and retention must be verified separately.
Fast checks- Identify local socket or network transport and which daemon owns the receiving endpoint. - Verify facility/severity and header fields on a known message instead of inferring them from filename. - For network syslog, prove source/destination, transport, listener and receiver-side arrival. - Correlate the exact syslog record with process/service/workload state before assigning causation.
Verification chainproducer → syslog API/socket/network send → PRI/header formation → local/remote collector → parse/rules → persistence/index → query → correlation with workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundaryA syslog record proves an emitted/received message within its path and metadata scope; it does not prove message completeness, reliable delivery on every transport, causation or service health. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?