Extracts longitude and latitude from city names using 3rd party database. Powered by 10Data
cityinfo [region=region-field] [country=country-field] city-field
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".
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
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.
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.
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.