Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GrahamHannington opened this issue May 28, 2021 · 1 comment

Comments

@GrahamHannington
Copy link

GrahamHannington commented May 28, 2021

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

@GrahamHannington
Copy link
Author

the Logstash TCP input plugin adds host and port fields

The current docs don't mention this behavior. This feature request involves updating the docs to mention this behavior.

I hope this feature request is accepted; however, if it's rejected, then it would be nice to have the docs updated so users aren't surprised by the presence of the added fields.

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

No branches or pull requests

1 participant