Skip to content

Use timezone ids compatible with logstash date filter #345

@dkirrane

Description

@dkirrane

The timezone created by log courier add timezone field: true doesn't match the Joda timezone ids supported by the Logstash date filter plugin.

Can log-courier produce the same Joda compatible timezone Ids so that it can be used to the date filter plugin? (Joda ids)

Logstash setup using timezone from log courier event:

        date {
            match => [ "log_timestamp", "YYYY-MM-dd HH:mm:ss,SSS" ]
            locale => "en"
            timezone => "%{timezone}"
        }

The logstash error I get when I use the timezone produced by log-courier i.e. -0600 MDT:

{:timestamp=>"2016-09-12T11:26:34.487000+0000", :message=>"Failed parsing date from field", :field=>"log_timestamp", :value=>"2016-09-10 20:13:50,769", :exception=>"wrong number of arguments (2 for 1)", :config_parsers=>"YYYY-MM-dd HH:mm:ss,SSS", :config_locale=>"en", :level=>:warn}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions