Splunk Search

How to compare a field to another field in a CSV file?

wweiland
Contributor

I need to lookup the IP in a firewall log to a field in an inputcsv. The CSV file holds 50k results, so subsearches are limited. It's been recommended not to increase the subsearch event limit in limits.conf. I've thought about doing the lookup using a relational database, but I would like to do this in the Splunk environment if possible. Does anyone have any suggestions?

0 Karma
1 Solution

sundareshr
Legend

sundareshr
Legend

Have you considered lookup, will that work for what you're doing? http://docs.splunk.com/Documentation/Splunk/6.3.1/Knowledge/Addfieldsfromexternaldatasources

wweiland
Contributor

lookup tables with updater reports as suggested by Sundareshr.

0 Karma

wweiland
Contributor

Works way better than I had expected. Thank you!

0 Karma

lguinn2
Legend

Yes, 50K results is definitely in range of a static lookup, as @sundareshr points out

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 ...