Splunk Search

Using iplocation and lookup csv to match Country list

pjohnson1
Path Finder

I have some IP's which I would like to lookup the Country for and match a lookup csv for a specific list of countries.

I have tried various combintation of the following but no joy:

<code>index=* sourcetype=network | iplocation src_ip [inputlookup country_list.csv | fields Country]</c>

Thanks for any suggestions.

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

This might work if all field names match:

index=* sourcetype=network | iplocation src_ip | search [inputlookup country_list.csv | fields Country]

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

This might work if all field names match:

index=* sourcetype=network | iplocation src_ip | search [inputlookup country_list.csv | fields Country]

pjohnson1
Path Finder

Thank you.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...