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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...