Splunk Search

Is there a REST API endpoint to display a lookup table's permissions?

pkeller
Contributor

Looking for a way to report on whether a lookup table is exported to all apps by using a rest search.

Assuming the lookup is under an app named etc/apps/FOO/lookups ... is there a curl endpoint I can use to display the lookup's metadata?

Thx.

0 Karma
1 Solution

somesoni2
Revered Legend
0 Karma

somesoni2
Revered Legend

Here you go

http://docs.splunk.com/Documentation/Splunk/6.4.2/RESTREF/RESTknowledgeExamples#data.2Flookup-table-...

curl -k -u admin:pass https://localhost:8089/servicesNS/admin/search/data/lookup-table-files/lookup.csv

In the output, look for field eai:acl.sharing. If it's value is 'global', it's exported to all apps.

0 Karma

pkeller
Contributor

Thank you. Much appreciated.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...