Splunk Search

How can I view the full city list that Splunk uses for iplocation?

MowLiao
New Member

Hi,

Does anyone know how I can view the full city list that Splunk uses for iplocation? I'm exporting my data, then using SAS to continue data processing, however, SAS has a specified set of city names within their own database, which don't match up with Splunk's cities.

E.g.
Splunk's database has "Bristol"
SAS's database has "Bristol, City of"

There're multiple occurrences of this which means my Splunk data is unusable within SAS because of this.

Thanks for your help.

0 Karma

gokadroid
Motivator

Splunk uses the GeoLite2-City.mmdb database for the iplocations. You can locate the file at $Splunk_Home/share.

  1. To view the City Names in the latest DB you can download the csv version from here or search for the java or python codes to open and read the mmdb file. (Not sure if Splunk has a command to to list all the iplocations stored in the DB)
  2. In case you need to update the City location db, see here or see Splunk blog here.

Maybe if SAS uses mmdb as well then you can synch up the GeoLite2-City.mmdb file and might see the info as expected.

0 Karma
Get Updates on the Splunk Community!

Unify Your SecOps with Splunk Mission Control

In today’s post, I'm excited to share some recent Splunk Mission Control innovations. With Splunk Mission ...

Data Preparation Made Easy: SPL2 for Edge Processor

By now, you may have heard the exciting news that Edge Processor, the easy-to-use Splunk data preparation tool ...

Introducing Edge Processor: Next Gen Data Transformation

We get it - not only can it take a lot of time, money and resources to get data into Splunk, but it also takes ...