Skip to content

New configuration option to make adding host and port fields optional #176

@GrahamHannington

Description

@GrahamHannington

Currently, the Logstash TCP input plugin adds host and port fields. I'd like a new configuration option to make that behavior optional.

I'm using Logstash to input JSON Lines over TCP, and then output to Elasticsearch.

The resulting indexed documents in Elasticsearch contain host and port fields that are not in the original JSON Lines forwarded to Logstash. These fields are added by the Logstash TCP input plugin.

For my use case, these added fields are undesirable.

Some of the original incoming JSON Lines might contain host and port fields. So, in the Logstash configuration, I can't simply insert unconditional mutate remove_field settings for host and port, because that would risk removing those original fields.

Related reference

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