Splunk Search

How accurate is iplocation for cluster map use?

Gawker
Path Finder

I have fortigate logs for which I have a high level of confidence that the srccountry values are correct.

I selected data from a particular day so that I could do my first cluster map using:

  • | iplocation srcip | geostats latfield=lat longfield=lon count

I was seeing some data that looked on the surface to be invalid. iplocation was saying that one of the IPs was in Seychelles off of the coast of Africa while srccountry was correctly indicating that the IP was in the Netherlands.

I then determined the number of entries where iplocation Country did not match srccountry and removed the "where" clause to get the full count:

  • | iplocation srcip | where NOT Country=srccountry | stats count

8,470 of the 29,233 data points (29%) had iplocation Country values that did not match srccountry.

561 of the 8,470 mismatches (7%) had null iplocation Country values.

Are my queries incorrect or...?

Thank you.

0 Karma
1 Solution

starcher
Influencer

By default Splunk uses the free Maxmind database. You are limited to that third party accuracy. Also if you are not updating your database that could be an issue.

View solution in original post

0 Karma

starcher
Influencer

By default Splunk uses the free Maxmind database. You are limited to that third party accuracy. Also if you are not updating your database that could be an issue.

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