Module 16 · SIEM and Log Management · Lesson 46 of 75
Logs: what to collect, and how it reaches the SIEM
The log sources that matter, common formats, agents and forwarders, parsing and normalisation, time sync, retention and protecting the logs themselves.
In this lesson · about 35 minutes
- Pick the highest-value log sources for detection
- Explain collection, parsing and normalisation
- Set sensible retention and protect log integrity
The sources that matter most
| Source | Why |
|---|---|
| Identity (Active Directory, Entra ID/Okta sign-ins) | Logins, MFA, account changes: most attacks use accounts |
| Endpoint (EDR, Sysmon, Windows Security log) | Processes, persistence, credential access |
| Email security | Phishing delivery and clicks |
| Firewall, VPN, proxy and DNS | Who talked to whom; C2 and exfiltration |
| Cloud audit logs (AWS CloudTrail, Azure Activity, Google Cloud Audit) | Every API call in the cloud (Module 20) |
| Web servers, WAF and applications | Web attacks and abuse |
| Servers (Linux auth/journald, auditd) | Logins, sudo, changes |
Formats
- Syslog (RFC 3164/5424): the Linux and network-device standard, sent over UDP/TCP 514 (or TLS 6514).
- Windows Event Logs (EVTX), collected by agents or Windows Event Forwarding.
- JSON: most cloud and modern apps.
- CEF/LEEF: vendor formats for security products.
The pipeline
- Collect: agents (Splunk Universal Forwarder, Elastic Agent, Azure Monitor Agent, Wazuh agent), syslog collectors, cloud API connectors.
- Parse: split raw text into fields (user, src_ip, action).
- Normalise: map fields to a common schema (Elastic Common Schema, Splunk CIM, OCSF), so one search covers firewalls from three vendors.
- Enrich: add geo-IP, asset owner, threat-intel matches.
- Store and index, then search, correlate and alert.
Getting the basics right
- Time sync (NTP) everywhere and store in UTC; a 5-minute clock drift ruins correlation.
- Retention: hot, searchable storage for 30–90 days; cheaper archive for a year or more (regulations such as PCI DSS require at least 12 months).
- Protect the logs: forward them off the host quickly (attackers clear local logs, event 1102), restrict who can delete them, consider write-once storage.
- Watch for silence: alert when a source stops sending. A firewall that went quiet is either broken or tampered with.
- Cost: SIEMs often charge by volume. Filter noisy, low-value events at the source rather than dropping high-value ones.
Try it · watch it run
Centralized logging: ship, store, search
Ship logs from several servers into a central store and search them. Notice how parsing turns raw lines into fields you can filter on, and what happens when a source stops sending.
3 services
write to stdout
12 lines
Collector
Fluent Bit / Promtail
on every node
Store
Loki / Elasticsearch
0 stored
Query
Grafana / Kibana
0 match
LogQL: {app="notes"} | json
Nothing stored yet. Ship the logs first.
Check your understanding0 of 3 correct
Quiz score: 0 of 3
Written by Noviq Academy in its own words. All labs are simulations: no real systems are touched, and every name, address, password and hash is made up. The offensive techniques taught here are for defending systems and for authorised testing only; never scan, access or test a system without the owner's written permission. Tool and product names belong to their owners, and command output may differ slightly from yours. Read-aloud uses your device's built-in voices.