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!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...