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, 2015 at 9:09 AM, Madhukar Thota <[email protected]>
wrote:
> Hi there
>
> is there an working example on how to use GeoIPdecoder with nginx or
> apache access logs?
>
>
>
>
> _______________________________________________
> Heka mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/heka
>
>
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka