Getting Data In

How to use a CSV file to search indexes

sajohnson6
Explorer

I have a CSV file already located on our Splunk instance with about 20000 IP's. I would like to use this file to search against our indexed firewall events. I've tried using the join command, it does return some results, but it never finishes. Does anyone know another way to do this?

Thanks in advance.

1 Solution

skoelpin
SplunkTrust
SplunkTrust

I've seen this exact same use case before.. Don't use join, you need to use the lookup command and you need to do the lookup after a transformational command like stats for better performance.

Depending on runtime and size, you may also want to consider summarizing your data and having the lookup run against the summarized data to max out performance

View solution in original post

0 Karma

skoelpin
SplunkTrust
SplunkTrust

I've seen this exact same use case before.. Don't use join, you need to use the lookup command and you need to do the lookup after a transformational command like stats for better performance.

Depending on runtime and size, you may also want to consider summarizing your data and having the lookup run against the summarized data to max out performance

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...