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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...