Skip to content

SIEM Architecture Diagram: Log Sources, Pipeline, Detection and Response

How a SIEM architecture works: log sources, syslog and agent collection, a Kafka buffer, OCSF normalization, retention tiers, Sigma detection rules and SOAR response.

· Founder & developer

Published

Log sources (firewall, endpoints, identity provider, cloud audit logs) feed collectors, Kafka, a normalize step, a hot index and detection rules; raw events are also copied from Kafka to an archive. Alerts go to a case queue, an analyst and a SOAR playbook that reaches back to the sources.

An alert fires at 03:12: failed sign-ins against twenty accounts from one address in fifteen minutes. To act on it, an analyst needs the firewall log for that address, the identity provider's record of any sign-in that then succeeded, and the endpoint log of what that account ran next. If one of them never reached the SIEM, carries a local timestamp or aged out last week, the investigation stops there.

A SIEM architecture is the path those events take, from log sources to detection rules and response. This post covers each stage with the standards behind it, the retention numbers auditors ask about, and a diagram you can copy.

What a SIEM does, stage by stage

NIST SP 800-92 splits log infrastructure into three tiers: log generation, log analysis and storage, and log monitoring. The SIEM analyzes events from all sources, correlates them, prioritizes the significant ones and can start a response. In practice, the tiers break into stages that fail in different ways:

Stage Job Typical components Fails when
Sources Record events in enough detail Firewalls, EDR, OS auditing, identity provider, cloud audit APIs Auditing is off, or a source was never onboarded
Collection Move events off the source Agents, syslog receivers, Windows Event Collector, API pollers UDP drops, local logs wrap, tokens expire
Buffer Absorb bursts, keep raw events Kafka or another durable queue The SIEM falls behind and sources discard data
Normalize Map fields to one schema, add context Stream processor, SIEM parsers A parser fails silently on a new format
Store Keep events searchable, then cheap Hot index, object storage archive Retention is shorter than investigations
Detect Turn events into alerts Scheduled queries, correlation Rules never fire, or fire all day
Respond Triage, investigate, contain Case queue, analysts, SOAR Alerts arrive without context or owner

Log sources: identity, endpoints and the edge

Start with what attackers cannot avoid: sign-ins, process starts and traffic at the edge. The US federal logging memo OMB M-21-31 is a useful checklist outside government too: it rates log categories by criticality and defines maturity tiers from EL0 to EL3.

Source Events worth keeping Examples
Identity provider, Active Directory Sign-ins, MFA, account and group changes Windows 4624, 4625, 4720, 4732
Endpoints and servers Process starts, script blocks, EDR detections Windows 4688 or Sysmon, Linux auditd, 1102 for a cleared log
Firewall, VPN, proxy, DNS Allowed and denied connections, sessions, queries High volume: filter at the collector
Cloud control plane Management API calls AWS CloudTrail, Azure Activity log, Google Cloud Audit Logs

Windows does not log all of this out of the box: Microsoft's events to monitor appendix notes that many audit policy settings are Not Configured by default. Set the Advanced Audit Policy before you plan collection.

Collection: syslog, agents and Windows Event Forwarding

SP 800-92 distinguishes agentless collection, where the SIEM receives or pulls logs, from agents that filter and normalize on the host. Most estates use both.

Syslog carries most network and Linux logs. RFC 5424 defines the format and requires support for TLS transport. The transport decides whether you notice loss:

Transport RFC Port Delivery
UDP RFC 5426 514 No acknowledgment; lost messages can go unnoticed
TLS over TCP RFC 5425 6514 Length-prefixed frames, certificate authentication

A failed SSH login framed for TLS: 138 is the length in octets, and priority 86 is facility 10 (security/authorization) × 8 + severity 6 (informational).

138 <86>1 2026-11-09T08:14:03.512Z bastion01.example.net sshd 4123 - - Failed password for invalid user admin from 203.0.113.7 port 50122 ssh2

Windows Event Forwarding sends events over WinRM to a Windows Event Collector. Microsoft's WEF guidance recommends source-initiated subscriptions set by Group Policy; in a domain, traffic is Kerberos-encrypted by default. Each client's local event log is its only buffer: if it wraps while the collector is down, events are lost and nothing reports the gap. Plan for about 3,000 events per second on average per collector.

Cloud and SaaS audit logs come from APIs that need credentials, enforce rate limits and run minutes behind.

The buffer between collectors and the SIEM

A durable queue such as Kafka absorbs bursts, so a noisy incident does not make sources drop events; lets parsers and the SIEM restart without losing data; and keeps raw events for replay after a parser fix. M-21-31 requires that the original log can be replayed.

Use a topic per source type and key records by host, so each host's events stay in order within a partition. Write the raw archive copy from the queue, before any parser. Watch consumer lag and sources that go quiet: M-21-31 requires near-real-time alerts when logging stops. The Kafka architecture diagram covers partitions and consumer groups.

Parsing, normalization and enrichment

A rule written against one vendor's field names misses every other vendor, so map all sources to one schema. OCSF, launched in 2022 by AWS, Splunk and other vendors on a schema contributed by Symantec, has been a Linux Foundation project since November 2024; the Elastic Common Schema is converging with OpenTelemetry semantic conventions. A failed Windows logon maps like this:

Meaning Windows 4625 OCSF Authentication (3002) ECS
Who TargetUserName user.name user.name
From where IpAddress src_endpoint.ip source.ip
Outcome Event ID 4625 status_id 2, Failure event.outcome: failure
What Logon attempt activity_id 1, Logon event.category: authentication
When TimeCreated time, epoch milliseconds @timestamp

M-21-31 specifies ISO 8601 / RFC 3339 timestamps with milliseconds and a time zone designator. Store event time and ingest time separately, and sync every source to designated time servers.

Enrichment adds the asset owner, the user's department, GeoIP and threat intelligence matches, often exchanged as STIX 2.1 over TAXII 2.1. Enrich at ingest when the answer changes: who held an IP address through DHCP at 03:12 is hard to reconstruct a week later.

Storage tiers and retention

Tier Holds Example retention Used for
Hot index Normalized events, searchable in seconds 90 days Detection rules, triage
Archive Raw events in object storage, write-once 12 months or more Investigations, audits, replay

Compliance sets the floor. PCI DSS requirement 10.5.1, quoted in Microsoft's PCI guidance, asks for 12 months of audit log history, the last three immediately available; a SIEM that collects logs from the cardholder data environment is itself in PCI DSS scope. M-21-31 sets 12 months in active storage plus 18 months in cold storage, and 72 hours for full packet capture. If the hot index runs on Elasticsearch, size its shards and data tiers for the retention you need: index lifecycle management can move older indices from hot nodes to cheaper warm, cold and frozen ones.

Protect the logs themselves: record who reads them, hash closed files and check the hashes, and keep the archive write-once. An attacker with administrator rights deletes evidence first.

Detection: rules, correlation and ATT&CK

Rule type Example
Single event Security audit log cleared (Windows 1102)
Threshold Failed logons for 20 accounts from one address in 15 minutes
Sequence Failed logons, then a success for the same user
Behavior baseline A user signs in from a new country and downloads far more than usual

Sigma rules are YAML that a conversion backend turns into each SIEM's query language, and version 2 added correlation rules. This pair detects password spraying: the first rule matches failed logons, the correlation counts distinct accounts per source address.

title: Failed Windows logon
name: failed_logon
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4625
  condition: selection
---
# ATT&CK T1110.003, Password Spraying
title: Password spraying from one source address
status: experimental
correlation:
  type: value_count
  rules:
    - failed_logon
  group-by:
    - IpAddress
  timespan: 15m
  condition:
    field: TargetUserName
    gte: 20
level: high

Map rules to MITRE ATT&CK techniques to see your coverage gaps. The Password Spraying page notes that sprays over LDAP or Kerberos may avoid event 4625. On domain controllers, failed Kerberos pre-authentication is event 4771 (events to monitor). Keep rules in Git, review them like code and test them against sample events.

Triage and response: cases, analysts and SOAR

NIST SP 800-61r3, published in April 2025, reorganized incident response around the six CSF 2.0 Functions instead of the four-phase life cycle in r2:

SP 800-61r2 phase CSF 2.0 Functions in r3
Preparation Govern, Identify, Protect
Detection and analysis Detect, Identify (Improvement)
Containment, eradication and recovery Respond, Recover, Identify (Improvement)
Post-incident activity Identify (Improvement)

Group alerts into cases by user or host, so twenty alerts about one account become one queue item. Analysts triage and pivot through the hot index. SOAR playbooks enrich cases automatically and run disruptive actions, such as disabling an account, isolating a host or blocking an address, after an analyst approves. The incident response flowchart shows the human side.

The SIEM architecture diagram

Log sources (firewall, endpoints, identity provider, cloud audit logs) feed collectors, Kafka, a normalize step, a hot index and detection rules; raw events are also copied from Kafka to an archive. Alerts go to a case queue, an analyst and a SOAR playbook that reaches back to the sources.

16 components · 14 connections

Open in Archboard
Diagram contents
  • Log sources
  • Firewall, VPN, proxy
  • Endpoints and servers
  • Identity provider
  • Cloud and SaaS audit logs
  • Collectors (syslog, WEC)
  • Kafka: raw event buffer
  • Parse, normalize, enrich
  • Hot index: 90 days
  • Archive: 12 months+
  • Detection rules
  • Alert queue and cases
  • SOC analyst
  • SOAR playbook
  • syslog over TLS
  • agent, WEF
  • sign-in API
  • audit API
  • raw events
  • consume
  • raw copy
  • OCSF fields
  • queries
  • alert + ATT&CK tag
  • triage
  • search, pivot
  • approves playbook
  • contain: block IP, disable user, isolate host
A SIEM pipeline: sources feed collectors and a Kafka buffer, a stream processor normalizes events into a hot index, detection rules raise alerts, and an analyst approves a SOAR playbook that contains the threat at the source.

How to read it:

  • Left frame: firewall logs arrive as syslog over TLS, endpoints through an agent or WEF, the identity provider through its sign-in API and cloud services through audit APIs.
  • Blue, ingestion: collectors write raw events to Kafka; a stream processor maps them to OCSF fields and adds context.
  • Teal, storage: normalized events go to a hot index kept 90 days; an archive consumer also copies raw events from Kafka to object storage kept 12 months or more.
  • Amber, detection: rules query the hot index and send alerts with ATT&CK tags to the case queue.
  • Red, right to left: the analyst triages, searches the hot index (grey dashed line up) and approves a playbook that blocks an IP, disables a user or isolates a host.
  • Markdown block: the pipeline's rules for clocks, transport, schema, retention and detection.

Drawing SIEM architecture diagrams clearly

  • Run ingestion and response in opposite directions, so the loop is visible.
  • Label every hop with its transport and payload: syslog over TLS, WEF, audit API, raw or normalized.
  • Draw the buffer and the archive. They decide whether a burst or a parser bug loses data.
  • Write retention on each store, in days or months, not just hot or cold.
  • Show who approves containment, as its own edge.
  • Keep network placement separate: collector segments belong on a network topology diagram, trust boundaries on a threat modeling data flow diagram, identity and segmentation on a zero trust architecture diagram.

Common mistakes are a single box labeled SIEM, collection arrows pointing from the SIEM to the sources, no rule for clocks and no alert for silent sources. Application metrics and traces follow a different pipeline: see the observability architecture diagram.

Build it in Archboard

  1. Sign in with Google or GitHub and create a diagram. If the pipeline already lives in a Mermaid flowchart, the Mermaid converter makes an editable first draft.
  2. Add a Frame from the Core pack named Log sources. Inside it, add a Firewall and an Identity Provider from the Security pack, a Device from the Network pack set to Desktop / laptop, and a Cloud resource from the Cloud pack for audit logs.
  3. In a row to the right, add a Server from the Network pack for the collectors, Kafka from the Data pack, a second Cloud resource for parsing, Logs from the DevOps pack for the hot index and an Alert from the DevOps pack for the rules.
  4. Below Kafka, add an Object Store from the Data pack for the archive.
  5. In a bottom row, right to left, add an Application from the Application map pack set to Case management, a Person from the C4 Model pack and an Action from the Automation pack for the playbook.
  6. Label the edges, and draw the containment edge from the playbook to the frame red and dashed.
  7. Add a Markdown block from the Core pack with the pipeline rules and a Text note across the top.

The example uses 15 diagram nodes, the most the Free plan allows in one diagram.

FAQ

What is the difference between a SIEM and log management? Log management collects, stores and searches logs of any kind. A SIEM adds security parsing, correlation across sources, detection rules and alert handling.

Do I need Kafka in front of a SIEM? Not always. A queue earns its place when bursts exceed what the SIEM ingests, when several consumers need the same events, or when you want to replay raw events after a parser fix.

How long should a SIEM keep logs? As long as investigations and obligations require. PCI DSS asks for 12 months, the last three immediately available; M-21-31 sets 12 months active plus 18 months cold. A hot tier plus an archive meets both.

What is the difference between SIEM and SOAR? A SIEM turns events into alerts. SOAR runs playbooks on those alerts: enrichment, tickets and containment through other tools' APIs.

Is UDP syslog good enough? Only on managed networks provisioned for it, as RFC 5426 says; lost messages can go unnoticed. Prefer syslog over TLS on TCP port 6514, or an agent that buffers locally.

Start free — one seat, no credit card.

Related posts

← Back to blog

Open a canvas in a minute

Sign in with Google or GitHub. Free for a single seat. Upgrade when the team joins.