Skip to content

Default application of json codec and ECS #155

Open
@TheVastyDeep

Description

@TheVastyDeep

For Content-Type application/json the json codec is used by default. That is helpful, but with the introduction of ECS it creates an issue. If the target option on the codec is not set (and the plugin does not set it) then logstash logs an INFO message about ECS compatibility is enabled but target option was not specified. This can be worked around using

additional_codecs => {}
codec => json { target => "[document]" }

but that is not very obvious, and it is not specific to the Content-Type. Perhaps the documentation should address this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions