icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading World City Info
SHA256 checksum (world-city-info_092.tgz) 3dd5a9e1e0d504d989b78c538d89833f4e455cecdd44224ab93930f8439f2d6f SHA256 checksum (world-city-info_091.tgz) 4344f5ef69e586f19cd53b5fad4973f9713677e77f5fe40a9f2dbc6074a09145 SHA256 checksum (world-city-info_09.tgz) 9f36458470688f5a581fc3093014bac2b7ab85e67124cfb5b6f60cc61f60df4a
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

World City Info

This app has been archived. Learn more about app archiving.
This app is NOT supported by Splunk. Please read about what that means for you here.
Overview
Details
This addon provides a custom command, `cityinfo', that adds latitude and longitude given a city name

Synopsis

Extracts longitude and latitude from city names using 3rd party database. Powered by 10Data

Syntax

cityinfo [region=region-field] [country=country-field] city-field

Required Arguments

  • city-field
    Syntax: field
    Description: Specify a city name field, case is ignored.

Optional Arguments

  • country-field
    Syntax: field
    Description: Specify a country name field, this field should contain 2-Character Alphabetical Country Codes, e.g., "us", "fr".

  • region-field
    Syntax: field
    Description: Specify a regional code field, e.g., "NY", "MX".

Output fields

  • lat: Latitude extracted from the city name
  • lon: Longitude extracted from the city name

Release Notes

Version 0.9.2
Dec. 31, 2014

Version: 0.9.2
Bug fix

Version: 0.9.1
Bug fix

Version: 0.9
System Requirement: Splunk 6.0 and newer

Usage:
This addon provides a custom command cityinfo', if your data has a column of city names, you can use it to get the longitude and latitude of that city, e.g., index=business_all_nation | cityinfo city. If the data has country and regional codes, like 'us', 'NY', you can use them to refine the match of city names, e.g., index=business_all_nation | eval country="us" | cityinfo city country=country. If a match of city name is found, two extra fields:lat' and `lon', will be added to each row.

Version 0.9.1
Dec. 31, 2014

Version: 0.9.1
Bug fix

Version: 0.9
System Requirement: Splunk 6.0 and newer

Usage:
This addon provides a custom command cityinfo', if your data has a column of city names, you can use it to get the longitude and latitude of that city, e.g., index=business_all_nation | cityinfo city. If the data has country and regional codes, like 'us', 'NY', you can use them to refine the match of city names, e.g., index=business_all_nation | eval country="us" | cityinfo city country=country. If a match of city name is found, two extra fields:lat' and `lon', will be added to each row.

Version 0.9
Dec. 12, 2014

World City Info

Version: 0.9
System Requirement: Splunk 6.0 and newer

Usage:
This addon provides a custom command cityinfo', if your data has a column of city names, you can use it to get the longitude and latitude of that city, e.g., index=business_all_nation | cityinfo city. If the data has country and regional codes, like 'us', 'NY', you can use them to refine the match of city names, e.g., index=business_all_nation | eval country="us" | cityinfo city country=country. If a match of city name is found, two extra fields:lat' and `lon', will be added to each row.


Subscribe Share

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.