Splunk Enterprise

Lookup Monitoring - If they are empty os with errors?

Zarack
Engager

We need to know how to monitor lookups created inside splunk, checking if they are empty or with errors. We use REST (| rest /services/data/transforms/lookups | table eai:acl.app eai:appName filename title fields_list updated id) to bring up all Lookups, but how can we check if the lookups are wrong or empty?

Labels (1)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

What defines 'wrong' or 'error' in that context. Are you trying to validate data contents? If so, you'll need to fetch the lookup and validate as you need. 

You can do this to validate for empty CSVs

| rest /services/data/transforms/lookups 
| table eai:acl.app eai:appName filename title fields_list updated id * 
| where type="file" 
| map maxsearches=1000 search="| inputlookup $filename$ | stats count | where count = 0 | eval file=$filename$"

Zarack
Engager

Sorry, in this case I meant that we also need to see if the Lookup was edited

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...