Monitoring Splunk

Is there a way to monitor the status of all lookup files through a search?

leftinnerouter
Explorer

Is there a way to monitor the status of all lookup files through a search query.

I would like to specifically show all lookups that are unreadable and alert on these.

Labels (2)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

You can use the REST API

| rest services/data/lookup-table-files

to get the look files - or you can do that in a script using the REST API

https://docs.splunk.com/Documentation/Splunk/8.2.7/RESTREF/RESTknowledge

Not sure how you can detect 'unreadability' on those though. Via the UI, you may be limited in what you can discover about the state of a file, but writing a script directly, which runs in the OS, you will have better ability to check the file itself.

 

0 Karma
Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...