All Apps and Add-ons

How to update a lookup table files automatically ?

nouhab
New Member

Hi All,

I have a Powershell script that generates a daily CSV file. I put manually that CSV file as Lookup table files using "settings> lookups> Lookup table files> add new" to use it for my splunk search "|lookup file.csv number as From OUTPUT User as FromUser ".

My question is, how do I get the lookup table to update automatically whenever the CSV file is updated in the specific local file ?

Thanks in advance,
Nouha

0 Karma

woodcock
Esteemed Legend

There is no REST endpoint to do this but the Lookup Editor app (which is included in Enterprise Security) provides one that you can leverage, too. Just install the app and dig around and do what it does:
https://splunkbase.splunk.com/app/1724/

0 Karma

nouhab
New Member

Thank you woodcock for your answer, but even with the Lookup File Editor application it is not possible to update the file automatically.
I have to upload the new file manually every time.

0 Karma

woodcock
Esteemed Legend

If you open up the guts, you will see how to do it programmatically with the REST endpoints. You still have to write some (very easy) software.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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