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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...