All Apps and Add-ons

find search body by sid

sakuraWu1
New Member

Hi all,

I have below link for a search, but when I click it, it shows nothing but only said: Unknown sid. I need to remove this search, but I don't know what is the search string inside.

May I know according to this sid, is there any way to find the search body from it?

https://***/search?sid=1476267099.133508

Thanks
wu

0 Karma

sbbadri
Motivator

So can get search body and other details by executing this rest command

| rest /services/search/jobs/1499263157.5501 splunk_server=local

Below is the link,

http://docs.splunk.com/Documentation/Splunk/6.6.2/RESTREF/RESTsearch

0 Karma

jplumsdaine22
Influencer

After the search expires it is no longer accessible by that URL. you can however check the _audit index. Try the following search

index=_audit search_id=1476267099.133508 info=granted search=* 

There is a field called search which will show you the SPL that was used

sakuraWu1
New Member

Sorry, I need recover this search ,not remove.

0 Karma
Get Updates on the Splunk Community!

Splunk Platform | Upgrading your Splunk Deployment to Python 3.9

Splunk initially announced the removal of Python 2 during the release of Splunk Enterprise 8.0.0, aiming to ...

From Product Design to User Insights: Boosting App Developer Identity on Splunkbase

co-authored by Yiyun Zhu & Dan Hosaka Engaging with the Community at .conf24 At .conf24, we revitalized the ...

Detect and Resolve Issues in a Kubernetes Environment

We’ve gone through common problems one can encounter in a Kubernetes environment, their impacts, and the ...