-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Labels
Description
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
- Elastic discussion forum topics:
Supermathie and antoineco