Thanks For Downloading!Review the documentation below and follow any custom installation steps. If no install steps are listed, most Splunk Apps and Add-ons can be installed as follows: Windows: Decompress the downloaded file using a tool like 7-Zip and place the resulting folder into Unix/Linux: Decompress the downloaded file using a tool like DescriptionVery fast lookups of the Country, Organization and ASN to which an IP address belong. Four GeoIP lookup commands are provided lookup geo lookup asn lookup geoasn lookup ga Background This app includes GeoLite data created by MaxMind, available from http://www.maxmind.com/ The Add-On is based on Will Hayes @ Splunk's MAXMIND Geo Location Lookup Script, but it has been rewritten to use the native Maxmind C libraries, for increased speed and functionality. GeoASN requires that you build the Maxmind C SDK and Python SDK, and copy the resulting libraries to $SPLUNK_HOME (see detailed instructions in the README file). The GeoASN lookup commands scales better, and can thus be used from within props.conf to provide automatic Country, Organization and ASN information for any search where an IP address is encountered. Example Searches If you have logs with a single IP address field: * | lookup ga ip If you have logs with two IP address fields: * | lookup geoasn src_ip dest_ip Example props.conf If you always want your searches to lookup the Country, Organization and ASN for IP addresses, you can configure props.conf to do this: LOOKUP-geoasn = geoasn src_ip dest_ip We typically use this for sourcetypes that have field extractions for src_ip and dest_ip, e.g., firewall logs. It produces the following fields:
If the IP address being looked up is within the ranges defined in RFC 1918 (Private IP addresses), the Country and Organization is set to 'RFC1918', to make it easy to filter on Private IP addresses. AS number is set to 0. If the address was not found in the database, and it is not an RFC 1918 address, the Country and Organization is set to 'Unknown', and the AS number is set to 0. Performance Benchmarking from Maxmind has shown that the native C libraries are capable of doing 400.000 IP address lookups per second, when memory caching is not used. The C implementation is capable of more than 1 million lookups/s when memory caching is used. GeoASN uses both the native C libraries and memory caching for maximum performance. Another optimization is the lookup of the Country, Organization and ASN for both the src_ip and dest_ip in one single command. Instead of executing multiple lookup commands, we only execute once. Typical Use Cases All logs containing IP addresses will be easier to analyze if you, for each IP address, can tell which Country and Organization it belongs to. This is especially relevant for security analysis, where one can perform queries and reports to e.g., show all foreign communications. Enjoy! Henrik Strom Versions and Release Notes
Version 1.3 (current version - updated Apr 19, 2011)
release notes:
Updated GeoIP database. Minor config file changes.
Version 1.2
(updated Apr 06, 2011)
release notes:
Code optimization. Wrong placement of re.compile in geo.py. Fixed now.
Version 1.1
(updated Apr 05, 2011)
release notes:
Added proper RFC 1918 checking to all four lookups.
Requested by Thomas Petersen, who also supplied the RFC 1918 regex now used in the code.
Version 1.0
(updated Apr 04, 2011)
|
Great app and fantastic step-by-step install instructions. As a point of note, I was able to do the install with Python 2.7.1 on the server and 2.6.4 in Splunk without any issues. Thanks for putting this together!
