Hello fellow Splunkers,
I am using the following query to fetch the splunk app name in standalone search head -
| rest /services/search/jobs splunk_server=local
| addinfo
| where sid = info_sid
| rename eai:acl.app as app_name
| fields + app_name
However, this same query is not working in SHC. It shows No results found
Any suggestions would be appreciated.
Thanks!
If you're running the query on a dashboard then this should work -
<your_base_query>
| eval app_name = $env:app$
| ...
However, this will not work if you are running the query on a search panel.
If you're running the query on a dashboard then this should work -
<your_base_query>
| eval app_name = $env:app$
| ...
However, this will not work if you are running the query on a search panel.
This will do. Thanks!
Good. Cheers!
Hi @Dawson014,
Try running just | rest /services/search/jobs
and see if it works
Tried this, worked once. Then again the same No Results founds