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

0 Karma

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!

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

SignalFlow: What? Why? How?

What is SignalFlow? Splunk Observability Cloud’s analytics engine, SignalFlow, opens up a world of in-depth ...

Federated Search for Amazon S3 | Key Use Cases to Streamline Compliance Workflows

Modern business operations are supported by data compliance. As regulations evolve, organizations must ...