GeoIP2 Filter
Look up Geo data from IP.
Last updated
Was this helpful?
Look up Geo data from IP.
Last updated
Was this helpful?
The GeoIP2 filter lets you enrich the incoming data stream with location data from the GeoIP2 database.
The GeoLite2-City.mmdb
database is available from .
This plugin supports the following configuration parameters:
database
Path to the GeoIP2 database.
lookup_key
Field name to process.
record
Defines the KEY LOOKUP_KEY VALUE
triplet.
The following configuration processes the incoming remote_addr
and appends country information retrieved from the GeoLite2 database.
Each Record
parameter specifies the following triplet:
country
: The field name to be added to records.
remote_addr
: The lookup key to process.
%{country.names.en}
: The GeoIP2 database query.
By running Fluent Bit with this configuration, you will see the following output: