Getting Data In

Output saved searches by owner

ejread
Explorer

To reduce duplication of efforts and clean up resource-intensive searches, I am trying to output a list of all saved searches, including the following attributes -

  • Name of search
  • Owner
  • Is it scheduled?
  • Schedule time
  • Search string

I have used the Splunk btool command, which provided everything except for the search owner. Is there any way to obtain this info?

Tags (1)
0 Karma
1 Solution

jonuwz
Influencer

This should get you started :

| rest /servicesNS/-/-/saved/searches | fields title *owner* *search* *schedule*

Run from the search bar

View solution in original post

jonuwz
Influencer

This should get you started :

| rest /servicesNS/-/-/saved/searches | fields title *owner* *search* *schedule*

Run from the search bar

ejread
Explorer

This worked great. I had to add the count argument to see them all, but this is exactly what we needed. thanks!

0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...