Getting Data In

How to Upload a dynamic CSV file into SPLUNK

santhosh2kece
Engager

Hi,

I have a CSV file which is dynamically updated by a Macro (every 7 mins). This csv file is used as a inputlookup to search a list of domains in SPLUNK.
Currently, if I have to update the csv file in SPLUNK, I need to delete the existing csv file stored in splunk and manually upload the Macro updated csv file.
Please let me know if this process can be automated.

Note: The csv is stored in Manager» Lookups» Lookup table files.

Regards,

Santhosh

Tags (2)
0 Karma

gfuente
Motivator

Hello

If it is a file that is beign updated continuosly, probably it would be better to simply index the file everytime it changes. So using a UF an a monitor stanza you will index the file everytime it changes maybe yo need to use CHECK_METHOD = modtime in your props.conf).

Then you can use the indexed data to do the lookup, using join command for example

EDIT: Take a look at this:

https://wiki.splunk.com/Dynamically_Editing_Lookup_Tables
Regards

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...