Reporting

Is there a way to report on the information located in savedsearches.conf?

kearaspoor
SplunkTrust
SplunkTrust

We have a business need to document all reporting deliverables and I'd prefer to automate as much of it as possible. I'm looking for options to pull information out of savedsearches.conf across all apps/all search heads. Need to be able to retrieve things like the search name, the search syntax, schedule, earliest/latest timeframes, and e-mail action details. In a perfect world, I could also cross reference it with the metadata about who created/owned the search and related permissions.

Is this something that I can do within Splunk using metadata or other self-reporting tools? Or do I need to set up a new inputs to monitor all splunk/etc/apps///saavedsearches.conf locations in order to grab this information? Or is there some other preferred option?

0 Karma
1 Solution

MuS
Legend

Hi kearaspoor,

take this REST search as a start:

  | rest /servicesNS/-/-/saved/searches

You will get heaps of information from this search.

Hope this helps ...

cheers, MuS

View solution in original post

MuS
Legend

Hi kearaspoor,

take this REST search as a start:

  | rest /servicesNS/-/-/saved/searches

You will get heaps of information from this search.

Hope this helps ...

cheers, MuS

kearaspoor
SplunkTrust
SplunkTrust

I was confused at first because it looked like this wasn't returning any results. But I stepped away and when I came back... poof! AWESOME DATA! So, I'd just caution anyone else who tries this... be patient 😄

Thank you!

0 Karma

pretzel2
Path Finder

This is great! However, it returns a ton of information. Is there any way to limit the scope of returned values? To perhaps certain attributes? or specific app context?

0 Karma

MuS
Legend

Sure there is, just try this for example | rest /servicesNS/-/-/saved/searches | search title="DMC*" this will return 13 saved searches from the Monitoring Console. The title is the name of any saved search.

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...