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!

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