geoip

geoip #

CategoryScope
Enrichmentrecord

The “geoip” pipeline processor: enrich the current record with geographic information looked up from a MaxMind mmdb database (GeoLite2/GeoIP2 City, Country, ASN or ISP — any of them; the decoder tolerates partial records).

Configuration #

FieldTypeDefaultDescription
fieldstring“client_ip”Source field to read from.
database_pathstringPath to the MaxMind mmdb database.
target_fieldstringDestination field to write the result to.
languagesliststringLanguages used for localized output.
propertiesliststringAdditional static properties set on the record.
ignore_missingboolDo not fail when the source field is missing.
ignore_failureboolDo not fail the record when processing errors; the record passes through unchanged.
tagstringTag appended to the record when processing fails.

Example #

processor:
  - for_each:
      processor:
        - geoip:
            field: client_ip
            database_path: /data/GeoLite2-City.mmdb
            target: geo
Edit Edit this page