Splunk Search

What is the SPL for cancelled / timed out searches?

McMac84
Engager

Hi everyone, I've a scenario where Splunk is timing out in querying customer SIEM environments and reporting as potential dropped logs.

If I check in the customer's SIEM, I see that there are no dropped logs, so I know the issue is to do with Splunk querying their environment. 

Knowing that, I am trying to craft an SPL that looks for searches that were canceled or timed out. Can someone help me with this?

What I've tried using is below but it's not accurately correlating to the time stamps I am seeing in the ticket for my customer.

Can someone help me build this out more.

 

index=<customer name> cancelled

 

Labels (2)
Tags (2)
0 Karma

danspav
SplunkTrust
SplunkTrust

Hi @McMac84,

Running searches are all logged to the _audit index - you can get details on cancelled searches there:

 

index=_audit action=search info IN("cancel","cancelled")
| timechart span=15m count by user limit=15

 

I believe "cancel" is system-cancelled, and "cancelled" is user-cancelled, but that's just my guess based on this docs page.


Cheers,
Daniel

 

0 Karma

isoutamo
SplunkTrust
SplunkTrust

You could/should use MC on splunk. There is dashboards where you could look skipped and deferred searches.

Settings -> MC

Search -> Scheduler Activity -> Instance or Deployment based on your system

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...