|
Is it possible to search on saved search names? I would like to be able to use splunk to query the data that is the names of my saved searches. |
|
The names of configured saved searches are not indexed in Splunk by default. However, saved searches are stored in savedsearches.conf configuration files on the indexer. You can use Splunk's btool commmand to show you the names of saved searches and which apps they are configured in:
A list of saved searches are also available in Splunk Manager. |
|
If you download the "Sanity Check My App!" app (written by carasso) from splunkbase, it includes a new search command entity. You can use it to tell splunk to use the rest endpoint to collect the saved searches.
_raw will contain the search name and the field "search" will have the search string. Can you elaborate on the
(15 Aug '11, 10:07)
gkanapathy ♦
I assume it's a wrapper for the SDK calls: http://dev.splunk.com/view/managing-objects-tutorial/SP-CAAADQ5
(15 Aug '11, 10:08)
gkanapathy ♦
1
I hadn't realized I was using a custom search command form an app I had installed. "Sanity Check My App!" I have updated my reply above.
(15 Aug '11, 10:24)
BobM
Cool application, I was trying to get the username of the person that created the saved search (the owner) anyone know how to do that?
(07 May '12, 11:22)
troywollensl...
|
|
I was looking for the same thing, and with latest Splunk, I could do the following.
I may be wrong, but wanted to share for those who will look for this in the future... e.g. "| rest /servicesNS/admin/search/saved/searches | table title qualifiedSearch" then I get this:
For memos to myself ... | rest /services/saved/searches | table author title qualifiedSearch
(20 May, 17:23)
melonman
|