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!

.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 ...