Splunk Enterprise

SPL to find KOs ?

Kenny_splunk
Path Finder

Hello community, I want to make it efficient when offboarding with clients. Is there an spl to find ALL of the KO's created in a particular app?

Labels (2)
0 Karma

meetmshah
SplunkTrust
SplunkTrust

Hello @Kenny_splunk we would need to call individual rest endpoints and append results. Like, /data/props, /data/transforms. Did a quick ChatGPT and found below search - 

| rest /servicesNS/-/<app_name>/data/props
| append [| rest /servicesNS/-/<app_name>/data/transforms]
| append [| rest /servicesNS/-/<app_name>/data/macros]
| append [| rest /servicesNS/-/<app_name>/saved/searches]
| append [| rest /servicesNS/-/<app_name>/data/ui/views]
| append [| rest /servicesNS/-/<app_name>/data/ui/nav]
| append [| rest /servicesNS/-/<app_name>/data/ui/manager]
| append [| rest /servicesNS/-/<app_name>/data/ui/panels]
| append [| rest /servicesNS/-/<app_name>/data/collections/config]
| fields title, eai:acl.owner, eai:acl.app, eai:acl.sharing
| search eai:acl.app="<app_name>"
| table title, eai:acl.owner, eai:acl.sharing
| sort eai:acl.owner, title

 

 Replace <app_name> with specific app name (like search).

 

Please hit Karma, if this helps!

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

this conf19 presentation shows how to find all KOs via rest api. https://github.com/paychex/Splunk.Conf19
r. Ismo

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...