# SIEM with Splunk

> Search, filter and visualise security logs using Splunk and its Search Processing Language (SPL). Free notes, key concepts, resources and a mini project.

Canonical: https://www.internhack.in/roadmaps/tracks/cybersecurity/siem-splunk
Last updated: 2026-11-28

Search, filter and visualise security logs using Splunk and its Search Processing Language (SPL).

Intermediate · about 14 hours · difficulty 3/5

Learn first: [Log Sources and Telemetry](https://www.internhack.in/roadmaps/tracks/cybersecurity/log-sources)

A **SIEM** (Security Information and Event Management) collects logs from many sources, normalises them and lets analysts search, correlate and alert. **Splunk** is one of the most widely used SIEMs, and Splunk's free training plus the Boss of the SOC datasets make it a great learning choice.

### Core concepts

- **Indexes** store data; **sourcetypes** describe its format.
- **Fields** are extracted at search time, so the same data can be sliced many ways.
- Searches are pipelines: filter first, then transform.

### SPL you should know

- Filtering: `index=wineventlog EventCode=4625`
- Aggregating: `| stats count by src_ip, user`
- Ordering and limits: `| sort -count | head 10`
- Time buckets: `| timechart span=1h count`
- Presenting: `| table _time host user CommandLine`
- Enrichment: `| lookup` against a CSV of known-bad IPs.

### From search to detection

Save a useful search as a **scheduled alert** with a threshold, add context fields, and document what an analyst should do when it fires. Dashboards help managers, but saved searches with clear runbooks help analysts more.

### Pitfalls

- Searching all time across all indexes: slow and expensive. Always set a time range and index.
- Trusting field names blindly; check the raw event to confirm extraction.

Good enough to move on: you can answer questions like "which user had the most failed logins yesterday and from where" with a single SPL search, and turn it into an alert.

## Key concepts

- **Indexes, sourcetypes and fields**
- **SPL search and filtering**
- **stats, timechart and table**
- **Lookups for enrichment**
- **Saved searches and alerts**
- **Dashboards**
- **Boss of the SOC datasets**

## Other options for this step

- [SIEM with the Elastic Stack](https://www.internhack.in/roadmaps/tracks/cybersecurity/siem-elastic): Use Elasticsearch, Kibana and Elastic Security to ingest logs, hunt with KQL/ES|QL and run detection rules.

## Mini project

Load a sample dataset (such as Boss of the SOC) into Splunk Free, answer five investigative questions with SPL, and save one of your searches as a scheduled alert with a written runbook.

## Check yourself

Why should you filter by index and time range at the start of every Splunk search?

## Free resources

- [Splunk Search Reference](https://docs.splunk.com/Documentation/Splunk/latest/SearchReference) (Splunk)
- [Splunk free training](https://www.splunk.com/en_us/training/free-courses/overview.html) (Splunk)
- [Boss of the SOC v3 dataset](https://github.com/splunk/botsv3) (Splunk)

Previous: [Log Sources and Telemetry](https://www.internhack.in/roadmaps/tracks/cybersecurity/log-sources) · Next: [SIEM with the Elastic Stack](https://www.internhack.in/roadmaps/tracks/cybersecurity/siem-elastic)

## More in Security Operations (Blue Team)

- [How a SOC Works](https://www.internhack.in/roadmaps/tracks/cybersecurity/soc-fundamentals)
- [Log Sources and Telemetry](https://www.internhack.in/roadmaps/tracks/cybersecurity/log-sources)
- [SIEM with Splunk](https://www.internhack.in/roadmaps/tracks/cybersecurity/siem-splunk)
- [SIEM with the Elastic Stack](https://www.internhack.in/roadmaps/tracks/cybersecurity/siem-elastic)
- [Log Analysis and Alert Triage](https://www.internhack.in/roadmaps/tracks/cybersecurity/alert-triage)
- [Detection Engineering with Sigma](https://www.internhack.in/roadmaps/tracks/cybersecurity/detection-engineering-sigma)
- [Threat Intelligence for Defenders](https://www.internhack.in/roadmaps/tracks/cybersecurity/threat-intelligence)
- [MITRE ATT&CK for Defenders](https://www.internhack.in/roadmaps/tracks/cybersecurity/mitre-attack-defenders)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Cybersecurity Roadmap](https://www.internhack.in/roadmaps/tracks/cybersecurity)
