Splunk Search

How do you find the properties/metadata of a lookup file via REST API?

koshyk
Super Champion

We have certain automated lookup files, which get updated by various feeds. Any chance to get the properties of these lookup files like last modified, size ? i.e. metadata about the lookup file using REST API?

As per Splunk API, i checked below properties endpoint, but it can drill down up-to the list of lookup files and not specific lookup/csv files. The last_updated field is incorrect in this endpoint and hence this doesn't work. I'm looking for a similar one

| rest splunk_server=local /services/properties/lookups/
0 Karma
1 Solution

DMohn
Motivator

Have you tried | rest splunk_server=local /servicesNS/-/-/data/lookup-table-files

View solution in original post

DMohn
Motivator

Have you tried | rest splunk_server=local /servicesNS/-/-/data/lookup-table-files

koshyk
Super Champion

Thank you mate. This one is correct and the updated timestamp seems correct.

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...