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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...