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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...