y-ken / fluent-plugin-geoip

Fluentd output plugin to geolocate with geoip.
http://rubygems.org/gems/fluent-plugin-geoip
Other
103 stars 23 forks source link

Partial nested value lookup key #75

Closed Xyaren closed 5 years ago

Xyaren commented 6 years ago

Problem

geoip_lookup_keys fails with complex json:

Config:

geoip_lookup_keys mdc.req.realIp

Json:

{
  "mdc": {
      "req.realIp": "1.2.3.4",
    }
}

Expected Behavior

Resolves the key correctly.

okkez commented 6 years ago

Please try #72

okkez commented 6 years ago

@Xyaren ping?

Xyaren commented 6 years ago

Sorry for the delay. To speed things up I modified the data before sending it into fluentd.

I did not test the method you provided sorry.

okkez commented 6 years ago

OK, thank you for reply.