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.
Splunkbase will be undergoing a scheduled migration and will be unavailable on Saturday, Oct 1, 2022, from 11AM to 3PM PDT

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 ISO 3166
SHA256 checksum (iso-3166_112.tgz) e39d3f06825f40b4771b250cae611dbdc83b532357ad252d7e4361290dd92d59 SHA256 checksum (iso-3166_111.tgz) 5ffb64cec5675d20a72904c5cca0346b8926c1024a58f66f3df42c80736c7418 SHA256 checksum (iso-3166_11.tgz) 44a3f8fb2517c1b35457cf1f4dfad820e482c039422bead9c0c22f3387a9936b SHA256 checksum (iso-3166_10.tgz) 91e8628b1aa0efd4a418cdb2edce85bfbd878638291bd52111ba6abaaa19b512
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

ISO 3166

This app is NOT supported by Splunk. Please read about what that means for you here.
Overview
Details
Have US and need USA, or have JAP and need JP?
How about country 826 and need GB or GBR?

This app is a simple lookup table that allows for easy conversion between two-letter, three-letter, and numeric Country Codes, as defined in the ISO 3166 standard (http://www.iso.org/iso/country_codes.htm).

ISO 3166-1 Country Codes

Offical information on the specification is found at the ISO Website

Human usable information on the specification can be found on Wikipedia

ISO 3166-1 provides 3 different types of Country Codes:

  • alpha-2: Two letter country codes, the most common version. MAXMIND and Splunk itself (v6) use this.
  • alpha-3: Three letter country codes, designed to provide "better visual association" (per Wikipedia)
  • numeric: Three digit country codes, used by the UN, designed to be (mostly) language independent.

The list was retrieved from the ISO website in the 1st quarter of 2014 and manipulated with awk and sed to create the CSV lookup table.

Column headers are "alpha-2,alpha-3,numeric"

Installation

Install via the GUI or unpack in etc/apps on the search heads.
After installation you will need to restart Splunk or force a reload of props.conf with "| extract reload=T"

Use

| lookup iso3166 [existing field] AS [new field]

Release Notes

Version 1.12
Nov. 1, 2017

Minor updates to support App Certification

Version 1.11
Oct. 31, 2017

Minor updates to support app certification

Version 1.1
Oct. 31, 2017

Updated to latest version of ISO 3166 countries (as of November 2017)

Version 1.0
May 5, 2014

Initial Release.


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.