Skip to content

Pipeline crash if timeout_timestamp_field is missing from event #121

Description

@TheVastyDeep

logstash 8.8.1 installed on Linux via RPM and run on the command line. aggregate is bundled with the RPM. Bundled JVM used.

If the timeout_timestamp_field is missing from an event then the pipeline crashes here with the error.

[ERROR][logstash.javapipeline ][main] Pipeline worker error, the pipeline will be stopped {:pipeline_id=>"main", :error=>"(NoMethodError) undefined method `time' for nil:NilClass",

Reproducible with

input { generator { count => 1 lines => [ '1' ] } }
output { stdout { codec => rubydebug { metadata => false } } }
filter {
        aggregate {
            task_id => "%{message}"
            timeout_timestamp_field => "foo"
            timeout => 5
            push_map_as_event_on_timeout => true
        }
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions