Open vwbusguy opened 6 years ago
Thanks for the report, i guess this is caused by the new fluentd version. We just tested the plugin against 0.12 but apparently the changes in 0.14+ are causing issues now.
Unfortunately I can't help you with a fix as I currently don't have the resources to support this project.
Ah, that's right. They changed the time format between the two versions. Ref. https://www.fluentd.org/blog/fluentd-v0.14.0-has-been-released Perhaps the best way to move forward would be to introduce a conditional for the EventTime format and default to 0.12 behavior so we don't break existing deployments.
I'm not sure if this is related to the other Java "fluency" project, but here's where the new nanosecond time-format is referenced - https://github.com/komamitsu/fluency#emit-event
The eventtime is being parsed way in the future. Here's an example:
I believe the problem is that we're send the event time in millseconds instead of "second since epoch" here: https://github.com/wywy/log4j-plugin-fluency/blob/master/src/com/wywy/log4j/appender/FluencyAppender.java#L210
This was my workaround in fluentd (1.0) to reconcile the two: