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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...