Free tech learning for everyone, from basics to pro

Security OperationsCyber SecurityIntermediate

SIEM and log management: collection, correlation and retention

In short: A SIEM gathers logs from across the organisation into one searchable place and runs rules that turn suspicious patterns into alerts. Its value depends on choosing the right log sources, keeping field names consistent and writing use cases tied to real risks.

What a SIEM does

A Security Information and Event Management (SIEM) platform is the central log brain of a Security Operations Centre (SOC). Every firewall, server, laptop and cloud service writes its own logs in its own format. On their own they are hard to search and easy to ignore. A SIEM pulls them together, makes them comparable, and watches for patterns that suggest an attack.

It has two jobs that are easy to confuse. Log management means collecting and storing logs reliably so you can search them later, for an investigation or an audit. Security analytics means running rules and models over those logs in near real time to raise alerts. Common platforms include Splunk, Microsoft Sentinel, Elastic Security and the open-source Wazuh.

How a SIEM handles a logCollectagents,syslog, APIsParsesplit intofieldsNormalisecommon fieldnamesEnrichadd contextCorrelaterules andanalyticsAlertcase foranalyst
Figure 1. A log event travels through collection, parsing, normalisation and enrichment before correlation rules decide whether it becomes an alert.

From raw log to useful event

  • Collection: agents on hosts, syslog from network devices, and API connectors for cloud and SaaS services.
  • Parsing: breaking a line of text into fields such as time, user, source IP and action.
  • Normalisation: mapping different names for the same thing (src, SourceIp, client_addr) to one schema so one rule works across vendors.
  • Enrichment: adding context, such as the user's department, the asset's owner, or whether an IP address appears on a threat feed.
  • Correlation: linking events. One failed login is noise; forty failures followed by a success from a new country is a story.

Time matters more than people expect. If devices are not synchronised with the Network Time Protocol (NTP), events appear out of order and correlation breaks.

Typical SIEM log sourcesIdentityAD, Entra ID, VPNEndpointsEDR, SysmonNetworkfirewall, DNS, proxyCloudaudit and activity logsEmailgateway, mailbox auditApplicationsweb, database
Figure 2. Six families of log source that cover most SIEM use cases; identity and endpoint logs usually give the most value first.

Use cases and correlation rules

A use case is a written statement of what you want to detect, why, which logs you need and what the analyst should do. Start with your biggest risks rather than every rule the vendor ships. A simple example is a password-spraying or brute-force check. In Microsoft Sentinel, written in Kusto Query Language (KQL), it could look like this:

SecurityEvent
| where EventID == 4625
| summarize Failures = count() by Account, IpAddress, bin(TimeGenerated, 10m)
| where Failures > 20

Good starter use cases include impossible travel, a new administrator account, audit logs being cleared, logins from disabled accounts, and large data transfers out of hours.

Retention, cost and common mistakes

DecisionThings to weigh
Hot (searchable) retentionFast search for recent investigations; usually the most expensive tier
Archive retentionCheaper storage for older logs needed by law, contracts or long investigations
What to ingestMany SIEMs charge by volume, so drop verbose debug logs and keep security-relevant events
IntegrityRestrict who can delete logs and alert if collection from a source stops

Common mistakes: switching on every log source with no plan, keeping hundreds of noisy rules nobody tunes, failing to notice when a source silently stops sending, and not documenting what each rule is for.

Tip: build a free practice SIEM with Wazuh in your own virtual lab; see the Wazuh SIEM lab.

Practice

Why does normalisation matter in a SIEM?
It maps different vendors' field names to one schema, so a single rule or search works across all sources.
Name two things a correlation rule might link to detect a compromised account.
For example, many failed logins followed by a success, or a login from a new country followed by a mailbox rule change.
A firewall stops sending logs and no one notices for a month. What control was missing?
A health or "silent source" alert that fires when expected log volume from a source drops to zero.

Frequently asked questions

What are the most important log sources for a SIEM?

Start with identity (Active Directory, Entra ID sign-ins), firewalls and VPNs, endpoint protection or EDR, DNS and web proxy logs, email security, and cloud audit logs such as AWS CloudTrail or the Microsoft 365 audit log. These cover most attack paths.

What is the difference between SIEM and log management?

Log management collects, stores and searches logs. A SIEM does that too, but also correlates events from many sources, applies detection rules and raises alerts for analysts to investigate.

What is a SIEM log example?

A typical example is a Windows event 4625 (failed logon) or a firewall log line showing source IP, destination IP, port and action (allow or deny). The SIEM parses fields like these so rules can spot patterns, such as many failed logons followed by a success.

How long should SIEM logs be kept?

It depends on regulations and investigation needs. Many organisations keep searchable logs for 90 days and archived logs for a year or more, because breaches are often discovered months after they start.

Key takeaways

  • A SIEM combines log management with real-time security analytics.
  • Logs are collected, parsed, normalised and enriched before correlation.
  • Write use cases from real risks, with clear analyst actions.
  • Plan retention tiers and ingest volume to control cost.
  • Monitor the SIEM itself: time sync, source health and rule quality.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
FM TecHub Team
Role
Editorial team
Reviewer credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

The team writes practical, plain-English guides on networking, security and cloud.

More about the team →

Original content written by the FM TecHub Team. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown