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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...