Splunk Search

Query to list all objects in an app?

Jewatson17
Path Finder

I am trying to run a query to find all objects in a particular app (i.e alerts, dashboards, props, etc) Urgent. Thanks

0 Karma

gjanders
SplunkTrust
SplunkTrust

A late answer but:

| rest "/servicesNS/-/<yourappname>/directory" splunk_server=local 
| search eai:acl.app="<yourappname>"
| table title, eai:type

Would be similar to using the "all objects" in the Splunk user interface for a particular app, the second search narrows down to objects created (not created + visible) within the app

woodcock
Esteemed Legend

There is no such thing. You have to query each KO-type via the REST API associated with it and then do some filtering. I finally have a very well executing "Knowledge Object Manifest" Dashboard that is dozens of panels tall. Why does it have so many panels? Because Splunk decided in v6.? that there is NEVER a reason to have a stats panel with more than 100 rows so they ignore any value higher than 100. This REALLY bugs me and has forced me to have 10 panels to cover 1000 eventtypes so that I can do a global search on one screen to check everything at once.

0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...