Skip to content

LogStash::Event should not allow nil keys! #4105

@andrewvc

Description

@andrewvc

Currently, it is possible to create an event with nil keys using the following code LogStash::Event.new(nil => 123). This should fail! It really screws with things like the Elasticsearch output.

The accessor [] does not have this error, but should raise a better error message (it just happens to fail by trying to invoke nil.starts_with?.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions