8.2.1. SIEM Architecture and Log Management
💡 First Principle: Detection is a pipeline, not a product. An event has to be generated, collected, parsed, time-stamped correctly, stored, matched by a rule and noticed by an analyst, and a break at any stage is silent: nothing alerts, so nothing looks wrong. A single failed login is noise; 500 failed logins across 50 accounts from one address is a password spray, visible only when logs are aggregated and correlated. The reusable tool: when an attack was "in the logs" but never detected, walk the pipeline from source to analyst and find the stage where the event stopped.
The log management lifecycle (NIST SP 800-92, Guide to Computer Security Log Management). Section 6.3.1 covers which events to log and why logs must be protected; this is how the organization runs them at scale:
| Stage | What happens | What goes wrong |
|---|---|---|
| Collection | Agents, syslog (RFC 5424, carried over TLS per RFC 5425) and API pulls from cloud services forward events to collectors | A source is never onboarded, or its forwarder fails quietly |
| Parsing and normalization | Vendor formats (Windows events, firewall syslog, CloudTrail) are mapped to a common data model, so one rule can query every source | A vendor upgrade changes the format; fields parse as empty and rules stop matching without any error |
| Time synchronization | Every source synchronizes to the same authoritative NTP source; events are stored in UTC with the original zone kept | Clock skew or unlabelled local times push related events outside a correlation window and corrupt forensic timelines |
| Storage and retention | Recent data in a fast, searchable tier; older data in cheaper archive; retention set by law, contract and policy (see 6.3.1) | Keeping everything searchable is unaffordable; archives are never test-restored |
| Integrity | Near-real-time forwarding off the source, hashing or WORM storage, restricted SIEM administration | Whoever administers the source or the SIEM can alter the evidence |
| Disposal | Logs are destroyed when retention ends, unless under legal hold | Keeping logs indefinitely enlarges eDiscovery scope and breach exposure |
SIEM architecture:
Collectors sit close to the sources (each site, each cloud account) and buffer events if the link drops. The correlation engine evaluates rules across sources and time windows (event A, then event B from the same account within ten minutes) and enriches alerts with context such as asset criticality, identity and UEBA risk scores (see 8.2.3).
Network telemetry the SIEM can use:
| Source | Captures | Security use |
|---|---|---|
| NetFlow / IPFIX | Metadata: source, destination, ports, bytes, duration; no payloads | Anomaly and exfiltration detection; affordable for weeks or months |
| Full packet capture (PCAP) | Complete packets, including content | Forensic reconstruction; storage limits retention to days |
| SPAN port | Switch copies traffic to a monitoring port | Feeds IDS and capture tools; can drop packets under load |
| Network TAP | Hardware copies traffic passively | Complete, reliable capture for evidence |
NetFlow can show that a workstation sent 4 GB to an unfamiliar address at 2 AM; it cannot show what the data was. Content requires packet capture or TLS inspection, so use flow data to scope an investigation and aim capture where it adds most.
Use cases, not log volume, create detection: a use case pairs a threat scenario with the log sources it needs, the detection logic, a response procedure and an owner. Start from the risks that matter (crown-jewel systems, techniques in current threat intelligence mapped to MITRE ATT&CK) and onboard the sources those use cases require. Collecting every log first and hoping rules emerge buys storage, not detection.
Tuning and SIEM health:
- When most alerts are false positives, tune the noisiest rules and add correlation before adding coverage. More analysts raise throughput, not signal-to-noise, so real incidents stay buried.
- The SIEM must watch itself: alert when a critical source goes silent, when ingest volume drops sharply, or when parse failures rise.
- Coverage follows log sources. Workloads moved to cloud stay invisible until provider audit logs, flow logs and workload logs are onboarded.
Where SOAR fits: the SIEM detects and alerts; SOAR (security orchestration, automation and response) runs playbooks afterwards, enriching, containing and notifying across tools. Section 8.2.2 covers SOAR and continuous monitoring; 8.2.3 covers the SOC that operates both.
⚠️ Exam Trap: "Centralizing all logs gives us detection." A searchable log store answers the questions an analyst already knows to ask; a SIEM's distinctive value is correlating normalized events across sources so that steps harmless alone surface as one attack. Neither works if sources are missing, clocks disagree or rules drown analysts in noise. When asked for the BEST improvement to a noisy SIEM, tuning and correlation beat more rules, more data and more staff.
Reflection Question: A post-incident review finds that the attacker's activity appeared in logs from the VPN, a domain controller and a file server, yet the SIEM never alerted. The VPN appliance logs in local time without a zone, the file server's parser broke after an upgrade two months ago, and the correlation rule requires all three events within ten minutes. Walk the pipeline: which stage failed for each source, which fix restores detection soonest, and what monitoring would have revealed each failure before the attack?