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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...