logstash-plugins / logstash-filter-date

Apache License 2.0
7 stars 43 forks source link

Output date is wrong when I use more than one date filter #136

Open jasonperrone opened 4 years ago

jasonperrone commented 4 years ago

If I have only the first filter in place, my @timestamp is produced like so:

"@timestamp" : "2020-04-03T16:35:10.000Z",

That's straight from Elastic using a cUrl command to search my index.

With both filters in place, my @timestamp ends up looking like:

"@timestamp" : "0020-04-03T16:35:10.000Z",

The other timestamp field also:

"timestamp" : "0020-04-03T16:35:10.000Z",

Notice how the year is now wrong (0020).

What in the?

jasonperrone commented 4 years ago

BTW, right now it seemed the problem did not appear when I reversed order of those two date filters.