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.
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
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)
- The priority. It packs two facts into one number: the kind of source (here, security messages) and the severity (here, 2, Critical).
- The time, written in a standard format. The Z means UTC, the world reference time.
- The name of the device that sent it.
- The program on that device that wrote the message.
- 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?
- Something happens. A device notices an event, such as a failed login or a cable being unplugged.
- It writes a line. The device builds a short message with the time, its name, the severity and the text.[1]
- 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]
- It may pass a relay. In bigger networks a relay (a middle computer) forwards messages on to the main collector.[1]
- The collector stores it. Messages from every device land in one store, where people search them and tools raise alerts.

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]

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 think | What 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:
- Security Logging for Beginners
- SIEM for Beginners
- Network Device Syslog and Configuration Change Detection Guide
- Networking Fundamentals for Beginners
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
- RFC 5424: The Syslog Protocol. R. Gerhards, IETF, March 2009 (Proposed Standard). https://www.rfc-editor.org/rfc/rfc5424, accessed 28 Nov 2026.
- 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.
- 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.
- 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.
- 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.
- 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.