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.

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.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

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

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.