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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...