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!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...