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!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...