Hi there
is there an working example on how to use GeoIPdecoder with nginx or apache
access logs?
___
Heka mailing list
Heka@mozilla.org
https://mail.mozilla.org/listinfo/heka
In order for Heka to include the GeoIpDecoder code into it's build, you
will need to compile heka yourself on a system that has MaxMind's
geoip-api-c libraries installed:
https://github.com/maxmind/geoip-api-c/releases/
What I have in production is slightly different so I haven't tested this
but h
You could just add it to the decoder if desired. Using the Lua geoip module
it would look like this:
require "geoip.city"
local city_db = assert(geoip.city.open(read_config("geoip_city_db")))
.
.
.
fields.country_code = city_db:query_by_addr(fields.remote_addr,
"country_code")
On Thu, Mar 5, 20
3 matches
Mail list logo