SOC Analyst - SPL Commands - Begginer Deck

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/50

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:34 PM on 6/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

51 Terms

1
New cards

index=botsv3

Searches all events in the botsv3 index. This is the most basic SPL search.

2
New cards

index=botsv3 error

Searches for events containing the keyword error.

3
New cards

index=botsv3 sourcetype=stream:http

Searches only HTTP stream events.

4
New cards

index=botsv3 sourcetype=stream:http method=POST

Finds HTTP events where the method is POST.

5
New cards

index=botsv3 sourcetype=stream:http (method=POST OR method=GET)

Finds HTTP events using either POST or GET.

6
New cards

index=botsv3 sourcetype=stream:http NOT status=200

Finds HTTP events where the status code is not 200.

7
New cards

index=botsv3 sourcetype=stream:http status!=200

Excludes a field value. Useful for finding errors or abnormal responses.

8
New cards

"index=botsv3 sourcetype=stream:http uri_path=""*.php"""

Finds HTTP requests to PHP files.

9
New cards

index=botsv3 earliest=-24h latest=now

Searches only the last 24 hours.

10
New cards

index=botsv3 | head 20

Shows the first 20 events returned by the search.

11
New cards

index=botsv3 | tail 20

Shows the last 20 events returned by the search.

12
New cards

index=botsv3 sourcetype=stream:http | table _time src_ip dest_ip http_method uri status

Displays selected fields in a clean table.

13
New cards

index=botsv3 sourcetype=stream:http | fields _time src_ip dest_ip uri status

"Keeps only selected fields

14
New cards

index=botsv3 | fields - _raw

Removes a field from the results. Useful when you do not want to display large raw events.

15
New cards

index=botsv3 sourcetype=stream:http | rename src_ip AS Source_IP dest_ip AS Destination_IP uri AS URL | table _time Source_IP Destination_IP URL

Renames fields to make output easier to read.

16
New cards

index=botsv3 sourcetype=stream:http | sort - _time | table _time src_ip dest_ip uri status

Sorts results by newest events first.

17
New cards

index=botsv3 sourcetype=stream:http | dedup src_ip | table src_ip dest_ip uri

Removes duplicate values and shows one event per unique source IP.

18
New cards

index=botsv3 sourcetype=stream:http | sort _time | reverse | table _time src_ip dest_ip uri

Reverses the event order. Useful after sorting.

19
New cards

index=botsv3 | stats count

Counts the total number of events.

20
New cards

index=botsv3 sourcetype=stream:http | stats count by src_ip

Counts events by source IP. Useful for finding noisy hosts.

21
New cards

index=botsv3 sourcetype=stream:http | top src_ip

Shows the most common source IPs.

22
New cards

index=botsv3 sourcetype=stream:http | rare uri

Shows the least common URI values. Useful for finding unusual requests.

23
New cards

index=botsv3 sourcetype=stream:http | stats dc(uri) AS unique_uris by src_ip

Counts distinct URI values per source IP. Useful for spotting scanning or crawling behavior.

24
New cards

index=botsv3 sourcetype=stream:http | stats values(uri) AS requested_uris by src_ip

Lists all URI values seen per source IP.

25
New cards

index=botsv3 sourcetype=stream:http | stats list(uri) AS uri_list by src_ip

"Lists URI values in event order. Unlike values()

26
New cards

index=botsv3 sourcetype=stream:http | stats earliest(_time) AS first_seen by src_ip

Finds the first time each source IP was seen.

27
New cards

index=botsv3 sourcetype=stream:http | stats latest(_time) AS last_seen by src_ip

Finds the most recent time each source IP was seen.

28
New cards

index=botsv3 sourcetype=stream:http bytes=* | stats min(bytes) AS smallest_response by src_ip

Finds the smallest byte count per source IP.

29
New cards

index=botsv3 sourcetype=stream:http bytes=* | stats max(bytes) AS largest_response by src_ip

Finds the largest byte count per source IP.

30
New cards

index=botsv3 sourcetype=stream:http bytes=* | stats avg(bytes) AS avg_bytes by src_ip

Calculates average bytes per source IP.

31
New cards

index=botsv3 sourcetype=stream:http bytes=* | stats sum(bytes) AS total_bytes by src_ip

Calculates total bytes transferred per source IP.

32
New cards

"index=botsv3 sourcetype=stream:http | eval suspicious_status=if(status>=400

""yes""

33
New cards

"index=botsv3 sourcetype=stream:http | eval result=if(status=200

""success""

34
New cards

"index=botsv3 sourcetype=stream:http | eval status_category=case(status>=200 AND status<300

""success""

35
New cards

index=botsv3 sourcetype=stream:http | where status>=400 | table _time src_ip uri status

Filters results using an expression.

36
New cards

"index=botsv3 sourcetype=stream:http | where like(uri

""%admin%"") | table _time src_ip uri status"

37
New cards

"index=botsv3 sourcetype=stream:http | where match(uri

""(?i)(cmd|powershell|wget|curl)"") | table _time src_ip uri"

38
New cards

index=botsv3 sourcetype=stream:http | search status=404 | table _time src_ip uri status

Filters results after an initial search.

39
New cards

index=botsv3 sourcetype=stream:http | timechart span=5m count

Creates a time-based count of events.

40
New cards

index=botsv3 sourcetype=stream:http | timechart span=5m count by src_ip limit=10

Shows activity over time by the top source IPs.

41
New cards

index=botsv3 sourcetype=stream:http | chart count over src_ip by status

Creates a matrix of status codes by source IP.

42
New cards

index=botsv3 src_ip=* | iplocation src_ip | table _time src_ip Country City Region

Adds geographic location information for public IPs.

43
New cards

index=botsv3 src_ip=* | iplocation src_ip | geostats count by Country

Creates geographic statistics. Useful for visualizing source countries.

44
New cards

index=botsv3 src_ip=* | lookup local=true threatintel ip AS src_ip OUTPUT threat AS threat_name | table _time src_ip threat_name

Enriches events with data from a lookup table. The lookup file must already exist.

45
New cards

| inputlookup threatintel.csv

Reads a lookup file directly. Useful for checking threat intel lists or asset inventories.

46
New cards

index=botsv3 sourcetype=stream:http | stats count by src_ip | outputlookup observed_src_ips.csv

Saves search results into a lookup file. Useful for building watchlists.

47
New cards

"index=botsv3 src_ip=* | where cidrmatch(""10.0.0.0/8""

src_ip) | table _time src_ip sourcetype"

48
New cards

"index=botsv3 | eval suspicious=if(match(_raw

""(?i)(powershell|cmd.exe|mimikatz|encodedcommand)"")

49
New cards

"index=botsv3 sourcetype=stream:http | eval admin_request=if(like(uri

""%admin%"")

50
New cards

"index=botsv3 sourcetype=stream:http | where in(status

""401""

51
New cards