Skip to content

Default year gets stale in running instance during calendar year change #3

@dshelepov

Description

@dshelepov

In logstash-filter-date/lib/logstash/filters/date.rb, this line (163 at the moment):

joda_parser = org.joda.time.format.DateTimeFormat.forPattern(format).withDefaultYear(Time.new.year)

will cause a problem when current year rolls over, because the filter will continue using the default year based on when the daemon was originally started, and not the current year.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions