Merge pull request #293 from mostolog/mmdblookup.rst

Create mmdblookup.rst
This commit is contained in:
Rainer Gerhards 2016-12-23 17:20:57 +01:00 committed by GitHub
commit 6dd573a339

View File

@ -0,0 +1,51 @@
.. index:: ! mmdblookup
MaxMind/GeoIP DB lookup (mmdblookup)
####################################
================ ==================================
**Module Name:** mmdblookup
**Author:** `chenryn <rao.chenlin@gmail.com>`_
**Available:** 8.24
================ ==================================
**Description**:
MaxMindDB is the new file format for storing information about IP addresses in a highly
optimized, flexible database format. GeoIP2 Databases are available in the MaxMind DB format.
Plugin author claimed a MaxMindDB vs GeoIP speed around 4 to 6 times.
Input parameters
****************
- **key** - default none
Name of field containing IP address.
- **mmdbfile** - default none
Location of Maxmind DB file.
- **fields** - default none
Fields that will be appended to processed message.
Examples
********
::
# load módule
module( load="mmdblookup" )
action( type="mmdblookup" mmdbfile="/etc/rsyslog.d/GeoLite2-City.mmdb" fields=["!continent!code","!location"] key="!clientip" )
Building
********
To compile Rsyslog with mmdblookup you'll need to:
* install *libmaxminddb-devel* package
* set *--enable-mmdblookup* on configure