Splunk Search

Finding the number of unique ip-addresses per country using geostats

jledinh
New Member

So what I have been able to do is display the total event count in each country/region using

host="NC-CORP-3098-AccessLogs" | iplocation clientip| geostats globallimit=0 count by Country

Is there a way to display the number of unique ip-addresses in each country?

0 Karma
1 Solution

DMohn
Motivator

As geostats uses the same stats aggregations as regular stats, dc would be the command you are looking for:

host="NC-CORP-3098-AccessLogs" | iplocation clientip| geostats globallimit=0 dc(clientip) as "Unique IP adresses" by Country

View solution in original post

0 Karma

DMohn
Motivator

As geostats uses the same stats aggregations as regular stats, dc would be the command you are looking for:

host="NC-CORP-3098-AccessLogs" | iplocation clientip| geostats globallimit=0 dc(clientip) as "Unique IP adresses" by Country

0 Karma

jledinh
New Member

Thank you so much!

0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...