mirror of
https://github.com/rsyslog/rsyslog.git
synced 2026-06-11 04:12:39 +02:00
Merge pull request #293 from mostolog/mmdblookup.rst
Create mmdblookup.rst
This commit is contained in:
commit
6dd573a339
51
source/configuration/modules/mmdblookup.rst
Normal file
51
source/configuration/modules/mmdblookup.rst
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user