Splunk cheatsheet
Search millions of log lines and see what is happening
How it works
- Collect — Logs arrive from many machines.
- Index — Events are stored with their time and fields.
- Search — SPL queries filter and count events.
- Alert — Rules warn the team when something unusual happens.
First steps
index=main error- Find events containing "error"
index=main | stats count by host- Count events per machine
index=main "Failed password" | stats count by src_ip- Count failed logins by source — a classic defence check
| timechart count- Draw events over time