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

[Heartbeat] Remove host.name field from events #14140

Merged
merged 4 commits into from
Oct 22, 2019

Conversation

andrewvc
Copy link
Contributor

@andrewvc andrewvc commented Oct 18, 2019

This field should never have been present, and is a distraction from the
observer.* fields.

Resolves #12107

This field should never have been present, and is a distraction from the
observer.* fields.

Resolves elastic#12107
@andrewvc andrewvc added Heartbeat Team:obs-ds-hosted-services Label for the Observability Hosted Services team labels Oct 18, 2019
@andrewvc andrewvc requested a review from ruflin October 18, 2019 18:49
@andrewvc andrewvc requested a review from a team as a code owner October 18, 2019 18:49
@andrewvc andrewvc self-assigned this Oct 18, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/uptime (:uptime)

Copy link
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitively needs a changelog as a breaking change.

@@ -34,7 +37,11 @@ var Name = "heartbeat"
var RootCmd *cmd.BeatsRootCmd

func init() {
RootCmd = cmd.GenRootCmdWithSettings(beater.New, instance.Settings{Name: Name})
settings := instance.Settings{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remember anymore the full affect of this. Does it only remove the host.* name fields or any other fields too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should just remove the default host.name field. In comparison to this line, which I think the default for a beat, the difference is just the lack of WithHost.

return MakeDefaultSupport(normalize, WithECS, WithHost, WithBeatMeta("agent"))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's my understanding as well

@andrewvc
Copy link
Contributor Author

@ruflin thanks for the review! Added the CHANGELOG entry, also cleaned up some imports I missed the first time.

Copy link
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please check CI.

@andrewvc
Copy link
Contributor Author

@ruflin CI failures are unrelated

@andrewvc andrewvc merged commit dd2c9ee into elastic:master Oct 22, 2019
@andrewvc andrewvc deleted the optional-host-name branch October 22, 2019 13:19
jorgemarey pushed a commit to jorgemarey/beats that referenced this pull request Jun 8, 2020
This field should never have been present, and is a distraction from the
observer.* fields.

Resolves elastic#12107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Heartbeat Team:obs-ds-hosted-services Label for the Observability Hosted Services team v7.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Heartbeat] host.name should not be set in heartbeat
4 participants