-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Only set host.name if not skipped #10728
Conversation
fixes #apm-server/1846
@simitt In general I like this change but I'm a bit concerned on the potential side effects. The reason we initially introduced this was because of older Logstash versions which added Also see discussion I started in #10698 Let's make sure if we merge that, that we don't break things on the way. |
Could you be a bit more specific on what to look out for? Happy to check out everything works, but I'd need some pointers, as I assumed to be good as long as tests are green. |
3 specific things I worry about:
But the one I'm worried about most is the unknown one :-) |
@simitt What about something similar to what APM added for skipping the This gives users of libbeat more freedom to define what their data looks like. If you choose to skip the built-in metadata then you must be sure to add back the fields like ecs.version if you need them. |
@andrewkroh I first wanted to add a If you prefer a dedicated skip option I am happy to change it, no strong preference the one or the other way. |
Actually upon further thought these two changes are not mutually exclusive, I can still add a |
I've been thinking a bit more about this. It will benefit apm-server, heartbeat and also the use cases where metricbeat monitors an external service. We should move forward on this but also test the above cases. It's very easy to reintroduce it again if things don't go as expected. Removing it will tell us the most on which things break. The way I would like to see the |
@andrewvc You will be interested in this PR / change. |
After some more discussion on this I went with the approach on simply introducing an option to skip adding |
fixes #apm-server/1846
This reverts commit 72df5e5.
This reverts commit 72df5e5. @urso figured out that adding this `SkipAddHostName` flag changes the order in which processors are applied and also changes that the host name now gets added to beats that are using the `pipeline.New` method (e.g. xpack monitoring). Thus this commit will be reverted and another solution will be implemented that allows to not set the `host.name` for every beat.
…10769) This reverts commit 72df5e5. @urso figured out that adding this `SkipAddHostName` flag changes the order in which processors are applied and also changes that the host name now gets added to beats that are using the `pipeline.New` method (e.g. xpack monitoring). Thus this commit will be reverted and another solution will be implemented that allows to not set the `host.name` for every beat.
fixes elastic/apm-server#1846