Splunk Search

How do we know if user stopped or pause the search while running the splunk query

harishsplunk7
Explorer

The query below is showing some details about ad-hoc searches. The “info” field in index=_audit has 4 possible values: completed, granted, canceled, failed.

I assume ‘granted’ means that the user was granted access to run the query, i.e., has the permission to access the indexes, run this type of query etc. I assume ‘canceled’ means that the query was cancelled. How do we know if it was cancelled by the user (user pressed the Stop button or Pause), or if it timed out by the system because it took too long to run ?

I found field fully_completed_search, but it is always true.
What would be some of the reasons to get a ‘failed’ status ?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

There is no "query below" in the OP.

There should be a 'reason' field in the events that explains the info field.

---
If this reply helps you, Karma would be appreciated.
0 Karma

harishsplunk7
Explorer

There is no reason field in audit log to explaing the info, even i am not finding it anywhere splunk documentation. 

Is there any other way to get the search query stopped by user using splunk queries? 

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

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...