Splunk Search

Search query that filters results by geolocation

ptur
Path Finder

Simply put i index a logon log to one of our services. I would like to create a table that would show me results based on geolocation, i.e. in this case, all connections made from IP addresses outside of north america. Is this possible on Splunk Cloud?

Thanks!

Tags (1)
0 Karma
1 Solution

mgast
Explorer

sourcetype=access_* status>=400 | head 20 | iplocation clientip | table clientip, status, City, Country|where Country !="United States"

Splunk has a builtin iplocation that works great.

View solution in original post

0 Karma

mgast
Explorer

sourcetype=access_* status>=400 | head 20 | iplocation clientip | table clientip, status, City, Country|where Country !="United States"

Splunk has a builtin iplocation that works great.

0 Karma

ptur
Path Finder

thanks! looks great

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