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

SourceWhy
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 securityPhishing delivery and clicks
Firewall, VPN, proxy and DNSWho 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 applicationsWeb 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

  1. Collect: agents (Splunk Universal Forwarder, Elastic Agent, Azure Monitor Agent, Wazuh agent), syslog collectors, cloud API connectors.
  2. Parse: split raw text into fields (user, src_ip, action).
  3. Normalise: map fields to a common schema (Elastic Common Schema, Splunk CIM, OCSF), so one search covers firewalls from three vendors.
  4. Enrich: add geo-IP, asset owner, threat-intel matches.
  5. 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

servicelevel

LogQL: {app="notes"} | json

Nothing stored yet. Ship the logs first.

Every line has fields, so you can filter by service and level, and click a request id to follow one request across web, api and worker. Try level: error, then click req-7f3a to see the whole story of the failed export, from every service.

Check your understanding0 of 3 correct

Question 1

1.Why normalise logs to a common schema?

Question 2

2.A server's logs suddenly stop arriving in the SIEM. What should happen?

Question 3

3.Which source records every API call in an AWS account?

Quiz score: 0 of 3

Tip: answer every quiz question correctly first.

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.