Join our Newsletter — 33% off our NHI Course
Home› Guides› Syslog for Beginners: How Routers, Firewalls and Servers…
Guide SOC & Detection Engineering

Syslog for Beginners: How Routers, Firewalls and Servers Send Their Logs

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 11 min read
On this page

Syslog is a common way for devices to send short event messages to a central log store.

This guide is for people new to IT or network work, and for students who keep meeting the word. If your business has a router, a firewall or a server, it can probably send syslog messages, and those messages are often the first place to look when something goes wrong.

In short

  • Syslog lets routers, firewalls, servers and many apps send event messages to one place.
  • Each message is one short line: when it happened, which device, how serious it is and what happened.
  • Plain syslog travels like a postcard, so it can be read, lost or faked on the way.
  • Send it over an encrypted link where you can, keep device clocks correct and keep the logs safe.

What you will learn

  • Explain what syslog is in one sentence.
  • Read the main parts of a syslog message.
  • Spot why plain syslog needs extra protection.
  • Check where your own devices send their logs.
Event record (log)
a short note a device writes when something happens, such as a login or an error.
Central log store (collector)
the computer that receives messages from many devices and keeps them together.
How serious (severity)
a number from 0 to 7 that says how urgent a message is.

What is syslog?

Think of every room in a large building posting a postcard to one post room each time something happens. One card says "door 3 opened". Another says "heater failed".

Syslog works the same way for computer equipment. A router, firewall or server writes a short line of text about an event, called a log message. It then sends that line across the network to a collector (a computer that gathers messages from many devices). People and tools can then search one place, not visit every device.

Syslog is old and very widely supported. An early version was written down in 2001 as a description of how people already used it.[2] The current standard was published in 2009.[1]

Where the comparison stops working: a post room usually signs for parcels. Plain syslog has no receipt, so the sender does not learn whether a message arrived.[1]

Why does it matter?

Logs help you work out what happened when a network fails or someone breaks in. Attackers may also try to delete logs to hide their tracks, so a copy kept away from the device is useful.[5] Government agencies from several countries have published joint advice on good logging.[6]

If you are new to IT or network work

What could happen: a router has been dropping its connection for days, and nobody saw the warnings it wrote.

Check this: find out which collector each device sends to, and whether anyone reads it.

Next: Security Logging for Beginners

If you run a small business

What could happen: after a break-in, the only logs were on the firewall, and the attacker wiped them.

Check this: ask your IT supplier whether your firewall's logs are copied somewhere else.

Next: SIEM for Beginners

If you are studying for a security job

What could happen: you are asked in an interview what "severity 3" means and how logs travel.

Check this: learn the eight severity levels and the difference between plain and encrypted syslog.

Next: Windows Event Logs for Beginners

What does it look like?

Here is a made-up syslog message from the current standard's format, with each part marked.

Example only. All values are made up.

<34>1 2026-11-28T09:14:15Z fw01.example.invalid sshd 0000 LOGIN - Failed login for user FAKE-admin

<34>                          (1)
2026-11-28T09:14:15Z          (2)
fw01.example.invalid          (3)
sshd                          (4)
Failed login for user ...     (5)
  1. The priority. It packs two facts into one number: the kind of source (here, security messages) and the severity (here, 2, Critical).
  2. The time, written in a standard format. The Z means UTC, the world reference time.
  3. The name of the device that sent it.
  4. The program on that device that wrote the message.
  5. The message itself, in plain words. In a real message, this would name the real account.

Why this is risky: sent as plain syslog, anyone who can watch that part of the network can read this line, including the account name. Someone could also send a fake line that looks just like it.[3]

The safer way: send messages over TLS (an encryption method that scrambles data on the way and proves the receiver's identity). The standard recommends this for general use.[1][4]

There are eight severity levels. From most to least urgent, they are 0 Emergency, 1 Alert, 2 Critical, 3 Error, 4 Warning, 5 Notice, 6 Informational and 7 Debug.[1] A lower number means a more serious message.

How does it work?

  1. Something happens. A device notices an event, such as a failed login or a cable being unplugged.
  2. It writes a line. The device builds a short message with the time, its name, the severity and the text.[1]
  3. It sends the line. The message goes across the network. Plain syslog usually uses UDP (a quick way to send data with no delivery check) on port 514. The encrypted version uses TLS on port 6514.[3][4]
  4. It may pass a relay. In bigger networks a relay (a middle computer) forwards messages on to the main collector.[1]
  5. The collector stores it. Messages from every device land in one store, where people search them and tools raise alerts.
Diagram titled How syslog gets logs to one place. On the left, three boxes: a router saying port 3 went down, a firewall saying blocked a connection, and a server saying failed login for admin. Arrows labelled 1, send, lead from all three to a green box in the middle called log collector, which receives messages from every device and adds them to one store. An arrow labelled 2, store, leads to a box called search and alerts, where people search and tools such as a SIEM raise alerts, labelled 3, look and act. A green bar says each device writes a short line of text and sends it across the network.
Figure 1. Many devices, one collector: the post room for event messages.

Plain syslog over UDP has known weak spots. There is no receipt, so lost messages are not sent again, and messages can arrive out of order. It offers no strong check of who sent a message, and anyone watching the traffic can read it.[3] The TLS version scrambles messages, lets changes on the way be detected and lets the sender check it is talking to the real collector.[4]

Side by side diagram titled Postcard or sealed envelope. Left panel, plain syslog over UDP on port 514: like a postcard, anyone on the path can read it, there is no receipt so a lost message may go unnoticed, it can be faked or changed, best kept to trusted networks. Right panel in green, syslog over TLS on port 6514: like a sealed, signed envelope, scrambled on the way, changes can be spotted, the collector can prove who it is, recommended for general use. A green bar says choose the sealed envelope where your tools support it.
Figure 2. Plain syslog is a postcard. Syslog over TLS is a sealed envelope.

Clocks matter too. If each device has a different time, events are hard to put in order. UK guidance suggests syncing every device to an accurate time source and logging in UTC.[5]

A worked example

Nadia Varga has just joined Wren Couriers, a fictional delivery firm, as its first IT support hire. The firm has one office router, one firewall and a small server that runs the booking system.

In her first week, drivers say the booking app keeps freezing in the afternoons. Nadia asks where the logs go. Nobody knows.

She looks at the router's settings and finds it can send syslog messages. It was never pointed anywhere. She remembers the post room picture: the rooms were writing postcards, but there was no post room to send them to.

Nadia asks her manager for a small collector. The supplier sets one up and points the router, the firewall and the server at it. She checks that all three devices take their time from the same time source, so the lines will line up.

Two days later, she searches the collector for the afternoon freezes. The router shows Warning messages about its internet link dropping, at the same minutes the drivers complained. She sends the times to the internet provider, who finds a faulty line.

Next, Nadia asks the supplier whether the devices can send over TLS. The firewall and server can, so they are switched over. The old router can only send plain syslog, so it stays on the office network, and she notes it as one to replace.

Last, she limits who can read and change the collector, and sets it to keep logs for at least six months, as UK guidance suggests.[5]

Myths and mistakes

What people thinkWhat is true
If a device sent a message, the collector got it.Plain syslog has no receipt. Messages can be lost on a busy or faulty network.[3]
Syslog messages are private.Plain syslog is not encrypted. Use TLS where your devices support it.[1]
Severity 7 is the most serious.It is the reverse. 0 is Emergency and 7 is Debug.[1]
Keeping logs on each device is enough.Logs on a device can be wiped by an attacker or lost when it fails. Copy them to a collector.[5]
The order messages arrive in is the order things happened.Plain syslog can arrive out of order. Use the times in the messages, with synced clocks.[3]

What can I do this week?

  • List your routers, firewalls and servers, and write down where each one sends its logs.
  • Check that every device takes its time from the same accurate time source.
  • Ask whether each device can send syslog over TLS, and switch over the ones that can.
  • Find out who can read and delete the collected logs, and how long they are kept.

Checklist

  • Every important device sends its logs to a central collector.
  • Device clocks are synced, and times are recorded in UTC.
  • Syslog travels over TLS where the device supports it.
  • Devices that only send plain syslog stay on trusted parts of the network.
  • Only the people who need it can read or change the collected logs.
  • Logs are kept for an agreed time, with enough storage so the disk does not fill up.
  • Someone looks at the logs, or a tool raises alerts on serious messages.

Common questions

Is syslog the same as a SIEM?

No. Syslog is a way to send and format log messages. A SIEM is a tool that collects logs from many places, searches them and raises alerts. Syslog is one of the common ways logs reach a SIEM. See SIEM for Beginners.

What port does syslog use?

Plain syslog over UDP uses port 514 by default. Syslog over TLS uses port 6514 by default. Both can usually be changed in the device settings, so check what your collector expects before you point devices at it.

Does Windows use syslog?

Not by default. Windows keeps its own event logs in a different format. Many organisations use an extra tool to forward Windows events to the same collector as their syslog devices. See Windows Event Logs for Beginners.

Is plain syslog over UDP ever acceptable?

Sometimes, on networks you manage and trust, especially for older devices that cannot do anything else. The standards advise against using it on unprotected networks. Keep those devices on a separate, trusted part of the network and plan to replace them.

How long should I keep syslog messages?

UK guidance suggests keeping logs that could help in an incident for at least six months, and longer if you can afford it. Your own rules, contracts or laws may ask for something different, so check those too.

Where next?

Ready for the detail? Read the practitioner guide: Syslog Protocol Guide. It goes further into the older and newer message formats, facility codes, structured data and how to secure the transport.

Also useful:

Related NHI Mgmt Group resources: Linux Logging and auditd for Defenders Guide · CIS Control 8 Audit Log Management Guide · SIEM Guide

Key terms

Syslog
A standard way for devices and programs to send event messages to a central log store.
Log management
Collecting, storing and searching the event records that systems write.
Severity
How serious an event is. In syslog it is a number from 0 (Emergency) to 7 (Debug).
UDP
A quick way to send data across a network with no check that it arrived.
TLS
An encryption method that protects data on the way between two computers.
Network Time Protocol
A common way for computers to keep their clocks matched to an accurate time source.
SIEM
A tool that collects logs from many sources, searches them and raises alerts.

Sources and further reading

  1. RFC 5424: The Syslog Protocol. R. Gerhards, IETF, March 2009 (Proposed Standard). https://www.rfc-editor.org/rfc/rfc5424, accessed 28 Nov 2026.
  2. RFC 3164: The BSD Syslog Protocol. C. Lonvick, IETF, August 2001 (Informational, obsoleted by RFC 5424). https://www.rfc-editor.org/rfc/rfc3164, accessed 28 Nov 2026.
  3. RFC 5426: Transmission of Syslog Messages over UDP. A. Okmianski, IETF, March 2009 (Proposed Standard). https://www.rfc-editor.org/rfc/rfc5426, accessed 28 Nov 2026.
  4. RFC 5425: Transport Layer Security (TLS) Transport Mapping for Syslog. IETF, March 2009 (Proposed Standard, updated by RFC 9662). https://www.rfc-editor.org/rfc/rfc5425, accessed 28 Nov 2026.
  5. Introduction to logging for security purposes. National Cyber Security Centre (UK), 8 July 2018. https://www.ncsc.gov.uk/guidance/introduction-logging-security-purposes, accessed 28 Nov 2026.
  6. Best practices for event logging and threat detection. Australian Signals Directorate with CISA, NCSC-UK and other partner agencies. https://www.cisa.gov/resources-tools/resources/best-practices-event-logging-and-threat-detection, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.