Skip to content
Visual explainer 4h to learn 4 steps

SIEM fundamentals: ingest, parse, search

Ingest logs into a SIEM and write searches that answer investigation questions.

By Invicly Tech, , in Cyber Security Fundamentals. About 10 minutes to read.

Topic 34 of 49

In short

A SIEM ingests logs from many sources, parses them into fields, and lets analysts search and alert across everything in one place. It is the central workbench of a SOC, turning scattered logs into correlated, searchable events.

Explained simply

A SIEM (Security Information and Event Management system) is a big search engine for logs, built for security teams. It pulls logs from servers, laptops, firewalls and cloud accounts into one place, so an analyst can ask one question and get an answer from all of them at once.

Raw logs are just text, and every product writes them differently. The SIEM breaks each line into named fields, such as user, source IP and action. Once a line becomes fields, you can filter (only failed logins), count (failures per user) and sort (worst first).

On top of searching, a SIEM runs saved searches on a schedule. When a search finds something, it creates an alert. Dashboards show the same searches as charts, so you can spot a spike at a glance.

Popular SIEMs include Splunk, Microsoft Sentinel, Elastic Security, Google Security Operations and the open-source Wazuh. Their query languages and prices differ, but the ideas in this lesson work in all of them.

Press Play on a diagram to walk through it one step at a time.

FlowSIEM processing
  1. Step 1
    Ingest

    Receive logs from sources.

  2. Step 2
    Parse

    Extract fields from raw text.

  3. Step 3
    Index

    Store for fast search.

  4. Step 4
    Search & alert

    Query and trigger rules.

LayersInside a typical SIEM
  1. 1
    Cases and dashboards

    Where analysts work and managers look

  2. 2
    Search and detection rules

    Ad hoc queries and scheduled alerts

  3. 3
    Index and storage tiers

    Hot, warm, cold and archive

  4. 4
    Parse, normalise, enrich

    Raw text becomes named fields

  5. 5
    Collection

    Agents, syslog and cloud API connectors

In depth

The parts of a SIEM

Every SIEM has the same main parts, even if the names differ. Collectors receive logs from agents, syslog and cloud APIs. An ingest pipeline parses each event into fields, renames them to a common schema and enriches them, for example adding the country of an IP, the owner of a host, or a threat intelligence match. Storage indexes the events so searches are fast. A search and rules engine runs queries by hand and on a schedule. Finally, alerts become cases that analysts work through.

In Splunk, a universal forwarder sends to indexers, and you search on a search head using SPL. In Elastic, Elastic Agent sends to Elasticsearch, and you search in Kibana. In Wazuh, agents send to a manager that applies decoders and rules, then to an indexer and dashboard. Microsoft Sentinel is cloud-only and uses KQL over a Log Analytics workspace.

Parsing and normalisation

Parsing turns a raw line into fields. Take the SSH line "Failed password for admin from 203.0.113.9 port 50122". A pattern (a regular expression, or a grok pattern in Elastic) pulls out user=admin, source IP=203.0.113.9 and port=50122. If parsing fails, the event is still stored, but searches on those fields will silently miss it. Always check a sample of new data after adding a source.

Normalisation renames fields to one shared schema. A firewall may call it src, Windows calls it IpAddress, and a proxy calls it client_ip. Mapping all of them to one name, such as source.ip in the Elastic Common Schema (ECS), lets one search cover every product. Splunk uses the Common Information Model (CIM), and many vendors now support OCSF, an open schema.

FlowOne SSH line on its way to the index
  1. 1
    Raw text

    Failed password for admin from 203.0.113.9

  2. 2
    Parse

    Pattern extracts user, IP and port

  3. 3
    Normalise

    Rename to user.name and source.ip

  4. 4
    Enrich

    Add country, asset owner, intel match

  5. 5
    Index

    Stored and searchable in seconds

Schema on write vs schema on read

SIEMs decide when to extract fields. Schema on write means parsing happens when data arrives, before it is stored. Elastic and Wazuh mostly work this way. Searches are fast and fields are consistent, but if you get a parser wrong, old data stays wrong unless you re-ingest it.

Schema on read means the raw event is stored and fields are extracted when you search. Splunk works mostly this way. You can fix or add a field extraction later and it applies to old data too, but searches do more work and field names can drift between teams.

In practice, most platforms mix both. What matters for you as an analyst is knowing which fields exist for a source and checking that they are filled in before you trust a search that returns zero results.

CompareWhen fields are extracted
Schema on write
  • Parse at ingest
  • Fast, consistent searches
  • Fixing a parser needs re-ingest
  • Examples: Elastic, Wazuh
Schema on read
  • Store raw, parse at search
  • Fix extractions any time
  • Searches do more work
  • Example: Splunk

Searches that answer questions, and dashboards people use

Good searches have the same shape: choose the data, limit the time, filter, then summarise. Picking an index or table and a short time range first is the biggest speed win, because the SIEM can skip most of its storage. Filter down to the events you care about, and only then count and group.

Turn each investigation question into that shape. Which accounts had more than 20 failed logins in the last hour? Which hosts talked to this IP this week? Which processes ran for the first time today? The last kind, comparing against a baseline, is powerful because attackers do new things.

A dashboard is several saved searches drawn as charts. Keep it to a few panels that answer clear questions, such as failed logins over time, top alerting hosts and log volume per source. A sudden drop in volume is itself a warning: a forwarder broke or someone turned logging off.

  • KQL: SecurityEvent | where EventID == 4625 | summarize count() by TargetAccount
  • SPL: index=wineventlog EventCode=4625 | stats count by user
  • ES|QL: FROM logs-* | WHERE event.code == "4625" | STATS n = COUNT(*) BY user.name

Learn it in 4 short steps

About 1h each. Track them with a timer in your plan.

  1. 1
    Explain SIEM architecture~1h
  2. 2
    Ingest and parse a log source~1h
  3. 3
    Write searches with filters and stats~1h
  4. 4
    Build a simple dashboard~1h

Key points

  • A SIEM centralises logs from across the environment.
  • Parsing turns raw text into searchable fields.
  • Correlation links events that are suspicious together.
  • Dashboards summarise activity for quick review.

Key terms

Tap a card to flip it. 0/4 known

Examples

Finding password spraying in Microsoft Sentinel

Password spraying means trying one or two common passwords against many accounts, to stay under lockout limits. Counting failures per account will not show it, because each account fails only once or twice. Step 1: group failures by source IP and count distinct accounts. Step 2: keep IPs that tried more than 10 accounts. Step 3: for each suspicious IP, check whether any logon from it succeeded (event 4624), since that account needs a reset now.

kql
SecurityEvent
| where TimeGenerated > ago(1h) and EventID == 4625
| summarize Accounts = dcount(TargetAccount), Attempts = count() by IpAddress
| where Accounts > 10
| sort by Accounts desc

// then, for one suspicious IP:
SecurityEvent
| where TimeGenerated > ago(1h) and EventID == 4624 and IpAddress == "203.0.113.45"
| project TimeGenerated, Computer, TargetAccount, LogonType

Parsing SSH failures with an Elasticsearch ingest pipeline

Your SSH logs arrive as a single message field, so nobody can search by user or IP. Step 1: create an ingest pipeline with a grok processor that extracts the user, source IP and port into ECS field names, and a set processor that marks the outcome. Step 2: test it with POST _ingest/pipeline/sshd-failed/_simulate and a sample document. Step 3: point the data stream at the pipeline. Step 4: search a few new events to confirm the fields are filled.

json
PUT _ingest/pipeline/sshd-failed
{
  "processors": [
    { "grok": {
        "field": "message",
        "patterns": ["Failed password for (invalid user )?%{USERNAME:user.name} from %{IP:source.ip} port %{NUMBER:source.port:int}"]
    } },
    { "set": { "field": "event.outcome", "value": "failure" } }
  ]
}

Quick reference

  • Search shape: data source, time range, filter, then aggregate, then threshold and sort
  • Filter before you aggregate: it is faster and keeps results readable
  • KQL distinct count: summarize dcount(TargetAccount) by IpAddress
  • SPL top talkers: index=fw | stats sum(bytes) as total by src | sort - total
  • Normalise to one schema (ECS, CIM or OCSF) so one search covers many products
  • Zero results? Check the field is actually parsed for that source before trusting it
  • Alert when a source goes quiet: a drop in volume can mean a broken forwarder or tampering
  • Splunk Free allows 500 MB of data per day, enough for a home lab

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1What does parsing do in a SIEM?

Question 2

2Which search pattern best finds password spraying?

Question 3

3What is the main benefit of normalising logs to a common schema like ECS?

Question 4

4Splunk extracts most fields when you search, while Elastic mostly does it when data arrives. What are these approaches called?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Without a SIEM, use Linux tools to count failed SSH logins per source IP and show the top 5. This is exactly what a SIEM stats search does.

  2. Exercise 2medium

    Write a KQL search that finds accounts with 10 or more failed logons followed by a successful logon from the same IP in the last hour.

  3. Exercise 3hard

    Design a four-panel SOC dashboard and write the query for a "silent source" panel that lists hosts which have not sent logs for 30 minutes.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Is a SIEM the same as a log management tool?
They overlap. Log management stores and searches logs; a SIEM adds security parsing, detection rules, alerting and case handling on top.
Which SIEM should a beginner learn first?
Splunk and Microsoft Sentinel appear in many job adverts, and Wazuh and Elastic are free to run at home. The search skills transfer, so learn one well and the others come quickly.
Why is my SIEM search so slow?
Usually the time range is too wide or the search starts without choosing an index or table. Narrow the time, pick the data source first, and filter before you aggregate.
Does a SIEM stop attacks?
No. A SIEM detects and helps you investigate. Blocking is done by other tools such as EDR, firewalls or a SOAR playbook that the SIEM can trigger.

Go deeper

ShareXLinkedInWhatsApp