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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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