Stage 5 of 7 · about 6–10 hours · beginner · checked 2026-11-26

Logs and telemetry

Goal. You know what gets logged, where it comes from and how it reaches a SIEM, and you can read a raw event.

Why it matters#

Every roadmap here runs on records of what happened. If something was never logged, nobody can alert on it, hunt for it or reconstruct it afterwards. And a log that quietly stopped arriving looks exactly like a quiet day.

What you will learn#

Words#

  • An event is one thing that happened. A log is a stream of recorded events.
  • Telemetry is the wider term for data systems send about themselves: logs, process records, network flows, cloud audit entries.
  • A sensor or agent collects data on a system.
  • A SIEM (security information and event management system) collects logs from many places, stores them, lets you search them and raises alerts.
  • EDR (endpoint detection and response) watches processes, files and connections on computers and can act on them.

Where logs come from#

Source Tells you Typical question
Operating system Logons, account changes, services Who signed in to this server?
Endpoint sensor (Sysmon, EDR) Processes, command lines, connections What did this program start?
Identity provider Sign-ins, MFA, consents, role changes Where did this account sign in from?
DNS Names that were looked up Who asked for this domain?
Firewall and flow Who connected to whom How much data left?
Web proxy and web server URLs, methods, status codes What was requested?
Email Senders, recipients, verdicts Who else received it?
Cloud audit Control plane actions Who created this key?
Applications Business actions and errors Who exported the records?

No single source tells the whole story. Investigations join them.

Formats#

Logs arrive as free text, as structured records such as JSON or XML, or as standard formats such as syslog (a long-standing way of sending messages) and CEF. Here is an invented sign-in event in JSON:

JSON
{
  "time": "2026-11-18T02:55:07Z",
  "event": "logon",
  "result": "success",
  "user": "svc-backup",
  "source_ip": "192.0.2.44",
  "destination_host": "fileserver01.example.com",
  "logon_type": "remote_interactive"
}

Read it as a sentence: at 02:55 UTC, svc-backup signed in successfully to the file server by remote desktop from 192.0.2.44. Then ask: does a backup service account normally use remote desktop at that hour? The event does not say it is bad. Context does.

The same facts as an invented line of text:

Text
Nov 18 02:55:07 fileserver01 auth: Accepted logon for svc-backup from 192.0.2.44

Notice what the text line lost: the year, the time zone and the logon type.

Fields, parsing and normalisation#

Parsing splits a raw record into named fields. Normalisation gives the same field the same name across sources, so a search for a source address works whether the firewall calls it src, SrcIp or source_ip. Examples of shared schemas are the Splunk Common Information Model, Elastic Common Schema, Microsoft's ASIM and the vendor-neutral OCSF. Parsing that breaks after an upgrade is a classic cause of silent detection failure.

How logs travel#

Diagram: Source, host, app, cloud; Collector or agent; Transport and parsing; Storage and index; Search, dashboards, alerts

Open the diagram full size

Diagram source (Mermaid)
Mermaid
flowchart LR
    A["Source<br/>host, app, cloud"] --> B["Collector or agent"]
    B --> C["Transport and parsing"]
    C --> D["Storage and index"]
    D --> E["Search, dashboards, alerts"]

Something can go wrong at every arrow: the agent stops, the network drops messages, the parser fails, the licence limit is reached. Collection may be push (the source sends) or pull (the collector asks an API).

Time#

Two timestamps matter: when the event happened and when the SIEM received it. The gap is ingestion delay. Clocks must be synchronised (NTP), and storing in UTC avoids confusion over time zones and daylight saving. Without this a timeline can put effect before cause.

Choosing what to collect#

Every log costs storage, licence and attention. Start from the questions you need to answer, such as "who signed in?" and "what ran?", and collect what answers them. Retention is how long you keep it. Intrusions are often found weeks after they start, so a very short retention can leave you with no beginning. Logs may contain personal data, so access and retention need rules.

Three habits to start now:

  1. For any log, know what makes it appear. Default settings often record little.
  2. Test it: do the action, then find the event.
  3. Know what is missing. Write it down.

This is only the basics. Checking coverage, completeness, field quality and delay properly is covered in Detection Engineering stage 3: Data and telemetry.

Searching#

Each SIEM has a query language: Splunk's SPL, Microsoft's KQL, Elastic's ES|QL and others. The idea is the same everywhere: pick the data, filter it, then summarise. A KQL example that counts failed Windows logons by account:

KQL
SecurityEvent
| where TimeGenerated > ago(1d) and EventID == 4625
| summarize failures = count() by TargetAccount, Computer
| order by failures desc

Illustrative: test it in your lab before relying on it. The table and field names assume Windows security events collected into Microsoft Sentinel.

Do this#

  1. Read raw events (1 hour). Open five events from different logs on your own machine in XML or JSON view. For each, write one sentence saying what happened.
  2. Trace an action (1–2 hours). Do one harmless thing (create a scheduled task and delete it) and list every record it produced. Note anything you expected but did not find, and why.
  3. Build a source inventory (1 hour). For your own machine or lab, make a table: source, what it records, where it is stored, how long it is kept.
  4. Query something (2 hours). Use the free KQL or Splunk training below to filter and count events.

Resources#

Free first

Paid or needs an account

  • None needed for this stage.

Checkpoint#

You are ready to move on when you can:

Go deeper (optional)#

0 / 5 checkpoints ticked

View this page on GitHub