On this page
A SIEM is only as good as the data in it and the questions you ask of it. Most SIEM problems are not query problems; they are data problems: a critical source that silently stopped sending three weeks ago, a field parsed as a string instead of an IP, a firewall producing 60 percent of the volume and 1 percent of the detections. This guide covers the architecture of a modern SIEM pipeline and how to decide which logs deserve a place in it.
It assumes you already know what you need to detect; if not, start with the threat model in how to build a SOC.
The pipeline, end to end
Whatever the product (Microsoft Sentinel, Splunk, Elastic, Google SecOps, an OpenSearch stack or a security data lake with a detection layer on top), the same stages exist:
- Collection. Agents (Windows Event Forwarding, Elastic Agent, Splunk Universal Forwarder, the Azure Monitor Agent), syslog receivers, and API pollers for SaaS and cloud.
- Transport and buffering. A message bus or pipeline tool (Kafka, Cribl, Vector, Logstash, Fluent Bit) that decouples sources from the SIEM so a SIEM outage does not drop events.
- Parsing and normalization. Extract fields and map them to a common schema so one detection works across vendors.
- Enrichment. Add asset owner, criticality, user department, geolocation, threat intelligence matches.
- Storage. Hot storage for search and detection, cheaper tiers for long retention.
- Detection. Scheduled and streaming rules, correlation, anomaly analytics.
- Case and response. Alerts flow to the case system and SOAR.
Normalize to a schema
Detections written against raw vendor fields break every time you change vendors or add a second firewall. Pick one schema and map everything to it:
- Elastic Common Schema (ECS), used by Elastic and widely adopted elsewhere.
- Open Cybersecurity Schema Framework (OCSF), an open, vendor-neutral schema adopted by several cloud providers and security data lakes.
- Microsoft's ASIM inside Sentinel, or Splunk's CIM inside Splunk.
The choice matters less than consistency. A process creation event from Sysmon, from an EDR and from Linux auditd should all land with the same field names for process path, command line, parent process and user. Sigma rules handle this through processing pipelines that map generic field names to your schema; see detection-as-code.
Timestamps and identity
Two normalization details cause most investigation errors:
- Time. Store event time in UTC, keep the original event time and the ingest time as separate fields, and monitor the gap between them. A source with six hours of lag will make every correlation rule miss.
- Identity. The same human appears as
CORP\jdoe,jdoe@corp.com, an Entra object ID and an AWS role session name. An identity lookup table that maps these to one person is one of the highest-value enrichments you can build.
Storage tiers and retention
Ingest costs dominate SIEM budgets. Not every log needs to be in hot, indexed storage.
| Tier | Purpose | Typical retention | Example content |
|---|---|---|---|
| Hot / analytics | Real-time detection and fast investigation | 30 to 90 days | Identity, EDR alerts, cloud audit, email security |
| Warm / basic | Occasional search, cheaper queries | 90 days to 1 year | Proxy, DNS, firewall allow logs |
| Cold / archive | Compliance and long investigations | 1 to 7 years | Everything, in object storage |
Set retention from three inputs: legal and regulatory requirements in your jurisdictions and sector, your realistic dwell time for intrusions (investigations often need to look back months), and cost. If you are a US federal agency, OMB memorandum M-21-31 sets explicit logging and retention tiers; outside that context it is still a useful reference for which events matter.
Make sure archived data can actually be searched or rehydrated within hours during an incident. Test it once a quarter.
Prioritizing log sources
Rank every candidate source on three questions:
- Detection value: how many techniques in your threat model does it reveal that nothing else does?
- Investigation value: when something happens, how often will an analyst need it to scope the incident?
- Cost and effort: volume, licensing, parsing work.
A practical priority order for most organizations:
Tier 1: onboard first
- EDR telemetry and alerts. Process, file, registry, network and module events from endpoints and servers. The single richest source for most intrusions.
- Identity provider. Domain controller security events (4624, 4625, 4648, 4672, 4720, 4728, 4732, 4756, 4768, 4769, 4771, 4776 among others) and cloud identity sign-in and audit logs. Almost every intrusion involves credentials.
- Cloud control plane. AWS CloudTrail (all regions, management events, plus data events for sensitive buckets), Azure Activity log and Entra audit, Google Cloud Admin Activity audit logs.
- Email security and mailbox audit. Delivery verdicts, URL clicks, inbox rule creation, mailbox delegation.
- SaaS admin audit logs for the critical platforms: the identity provider, collaboration suite, source code platform, CRM.
Tier 2: next
- VPN and remote access gateways. Initial access via exposed edge devices is common.
- DNS queries (resolver logs or EDR network events). Command and control, tunneling, newly registered domains.
- Web proxy or secure web gateway.
- Windows endpoints without EDR coverage, with Sysmon. A community configuration such as SwiftOnSecurity's or Olaf Hartong's sysmon-modular is a good starting point:
sysmon64.exe -accepteula -i sysmonconfig.xml
# update the configuration later
sysmon64.exe -c sysmonconfig.xml
- Linux servers via auditd or an EDR: execve, privilege changes, SSH authentication.
- Kubernetes audit logs and container runtime events where you run production workloads.
Tier 3: when needed
- Firewall allow logs. High volume, modest detection value; keep denies and summaries hot, raw allows in a cheaper tier.
- NetFlow and full network metadata (Zeek). Excellent for hunting and scoping, costly at scale.
- Application logs for custom critical applications. High value for fraud and business logic abuse, but each one is a custom parsing project.
- Database audit logs for regulated datasets.
What not to ingest by default
Verbose debug logs, successful health checks, every NetFlow record from the guest Wi-Fi. If no detection uses it and no playbook needs it, route it to cold storage or drop it.
Mapping sources to ATT&CK
MITRE ATT&CK lists data sources and data components (for example, "Process: Process Creation" or "Logon Session: Logon Session Creation") for each technique. Mapping your onboarded sources to these components shows which techniques you could detect in principle. Tools like DeTT&CT score both data quality and detection coverage per technique and visualize them in the ATT&CK Navigator. This is the backbone of the ATT&CK coverage assessment.
Remember that "we have the data" does not mean "we detect it". Coverage requires data, a detection, and a test that proves they work together.
Keep the pipeline healthy
Silent log source failures are among the most dangerous SOC problems because nothing alerts. Build monitoring for the pipeline itself:
- Heartbeat per source: alert when a source sends zero events for longer than its normal gap. A simple version in KQL:
// Sources that have not sent events in the last 2 hours but did in the last 7 days
union withsource=TableName *
| where TimeGenerated > ago(7d)
| summarize LastSeen = max(TimeGenerated) by TableName, Computer
| where LastSeen < ago(2h)
| order by LastSeen asc
- Volume anomalies: a sudden 90 percent drop often means a broken agent or parser.
- Parsing failures: count events that fail to parse or land with empty key fields.
- Ingest lag: track the difference between event time and ingest time per source.
- Coverage drift: compare the asset inventory against hosts reporting EDR and log telemetry, weekly.
Assign the pipeline health dashboard to the platform engineer, not to analysts, and review it in the daily stand-up.
Cost control without blind spots
- Filter at the pipeline layer, not at the source, so you can change your mind without touching agents.
- Summarize high-volume, low-value events (count of allowed connections per source and destination per hour) instead of storing every record hot.
- Review the top ten sources by volume quarterly against the detections and investigations that used them.
- Keep the raw data in cheap object storage when you drop it from the SIEM; you will want it during the next major incident.
References
- CISA: Best Practices for Event Logging and Threat Detection
- NIST SP 800-92: Guide to Computer Security Log Management
- Open Cybersecurity Schema Framework (OCSF) schema browser
- Elastic Common Schema reference
- MITRE ATT&CK data sources
- Microsoft Sysinternals: Sysmon
- sysmon-modular (Olaf Hartong)
- DeTT&CT: Detect Tactics, Techniques and Combat Threats
Written by
Florian AmetteSecurity engineer writing practical, vendor-neutral guidance on building and running Security Operations Centers: detection engineering, SIEM, triage, incident response and SOC metrics.