Getting Data In

Create Table Based on Findings?

dninccno
New Member

We have AV logs that send the detection and the block separately. I'm trying to create a query where I can take each incident_id (which has a log with a block, and a log with a detection) and have the query verify that both of logs are there.

So it would table like incident_id ifDetectionFound ifBlockFound.

I can't seem to wrap my mind around how to have it search the logs again for a block. Right now I'm just indexing for action=block OR action=Detection, but it still requires me to compare incident_ids (which are quite long random bits of numbers)

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| eval ifDetectionFound=if(action="Detection",action,null())
| eval ifBlockFound=if(action="Block",action,null())
| stats values(ifDetectionFound) as ifDetectionFound values(ifBlockFound) as ifBlockFound by incident_id
0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...