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!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...