Reporting

How to get the last updated (or created) time for a saved search?

uuppuluri_splun
Splunk Employee
Splunk Employee

Would like to know get rid of saved searches (and associated jobs) that have been created a long time and are no longer active.

0 Karma
1 Solution

uuppuluri_splun
Splunk Employee
Splunk Employee

With 6.3 (and above), we can get this information using a REST API call. For example,
|rest /services/saved/searches/Test will give this information about the Saved Search "Test" in the updated data key such as the below:
updated
2015-12-30T18:51:48-08:00

The initial time will be for created and will be replaced by the time of last update.

This should help track when the searches were last updated.

View solution in original post

0 Karma

uuppuluri_splun
Splunk Employee
Splunk Employee

With 6.3 (and above), we can get this information using a REST API call. For example,
|rest /services/saved/searches/Test will give this information about the Saved Search "Test" in the updated data key such as the below:
updated
2015-12-30T18:51:48-08:00

The initial time will be for created and will be replaced by the time of last update.

This should help track when the searches were last updated.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...