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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...