Splunk Search

Splunk search command that returns fields from view "Manager » Searches and reports"

lpolo
Motivator

Is there a Splunk search command that returns information found in "Manager » Searches and reports" view?

For example, I need to know all the search names and search scheduled time configured in a particular indexer using a search command.

Thanks,
Lp

Tags (1)
0 Karma

sideview
SplunkTrust
SplunkTrust

You can download a 90 day trial of Sideview Utils 2.0, because it packages a splunkentity command that will do what you want:

| splunkentity /saved/searches app="some_app"

Granted, knowing what the entity path is for a particular kind of Manager object can be a little tricky, but you can often figure it out and when in doubt you can ask me.

go here, then on the right you'll see 'download trial'.
http://sideviewapps.com/apps/sideview-utils/

Especially if you've ever created or edited a view in the Advanced XML, there are many powerful reasons to check out Sideview Utils 2.0. To be honest although the splunkentity command is quite useful it falls so far down on that list that I have yet to write up a docs page for it.

sdaniels
Splunk Employee
Splunk Employee

Look at the details from this search. I'm not sure I see a scheduled time but it gives you alot of details for your searches.

| rest /services/saved/searches 

After you see the fields you want just simplify the table with specific columns.

| rest /services/saved/searches  | table title search

lpolo
Motivator

Could you ask to your colleagues in Splunk Tech Support of Dev?
Thanks,
Lp

0 Karma

sdaniels
Splunk Employee
Splunk Employee

Not that I can find.

0 Karma

lpolo
Motivator

It improved. I can see all scheduled searches that ran or are running.
Is there a way to get what is found in the "Manager » Searches and reports" view?

0 Karma

sdaniels
Splunk Employee
Splunk Employee

This shows what has run and shows searches outside of just the search app. Might be a way to sort/dedup this for information that you want.

| rest /services/search/jobs

0 Karma

lpolo
Motivator

Search = | rest /services/saved/searches | table title search
If I execute the search from this app:

http://hostname:8000/en-US/app/search/dashboard_live

I get the same result set if I run the same search from one of our apps:

http://hostname:8000/en-US/app/metrics_abc/search_view

Both apps have different scheduled searches configured.

0 Karma

sdaniels
Splunk Employee
Splunk Employee

Seems to be retriving searches for the search app only.

0 Karma

lpolo
Motivator

It seems that is not returning all the scheduled searches for all the apps. Is there an ending point call for each app?

Thanks,
Lp

0 Karma

lpolo
Motivator

Yes. I did the work. The returned fields are the ones I need.

0 Karma
Get Updates on the Splunk Community!

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 ...

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, ...