Re: [heka] GeoIPdecoder with nginx access logs

2015-03-06 Thread Madhukar Thota
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

Re: [heka] GeoIPdecoder with nginx access logs

2015-03-06 Thread Mike Gibson
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

Re: [heka] GeoIPdecoder with nginx access logs

2015-03-06 Thread Michael Trinkala
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