Splunk Search

Why Error: [subsearch]: The lookup table 'dns_serves.csv' requires a .csv or KV store lookup definition?

siemengr
Engager

I'm trying to exclude specific src_ip addresses from the results of a firewall query (example below). The query completes, however the src_ip addresses are not excluded and the following error is returned: [subsearch]: The lookup table 'dns_serves.csv' requires a .csv or KV store lookup definition. 

Example:

index=firewall
| search NOT [|inputlookup dns_serves.csv | fields src_ip]
| table src_ip dest_ip signature

When running |inputlookup dns_servers.csv by itself the contents of the lookup are returned so I know the lookup is good. I've checked the lookup permissions, CSV encoding, and searches forum threads for a solution. 

 

Labels (1)
Tags (2)
0 Karma

jwhughes58
Contributor

I had the same error this morning.  I didn't have either the Lookup Table file or the Lookup definitions as global.  Once I changed them both to global, the error went away.

0 Karma

siemengr
Engager

Excluding the src_ip addresses is working now. I had a typo in my lookup name. The error is still present.

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Are you saying it is working or there is an error? I'm assuming the typo was serves.csv vs servers.csv, but if there is still an error, can you say what the current problem?

 

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