-
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
add_host_metadata processor overwrites host.id field added by modules #20464
Comments
Pinging @elastic/integrations-platforms (Team:Platforms) |
@kaiyan-sheng thanks for opening this issue.
In any case I think that we could make |
I think this is the right behavior to have because you want all or nothing. Otherwise you can have data representing different hosts mixed together. Same for add_observer_metadata. One challenge is that beats/libbeat/publisher/processing/default.go Lines 335 to 341 in b153044
|
@jsoriano @andrewkroh Agreed. How about seperating this issue into two steps/PRs?
|
Sounds good to me. I think we can create another issue for the removal of |
PR for adding In order to match what add_host_metadata processor's current behavior, @andrewkroh @exekias @jsoriano Is there any concerns here for making this breaking change in 7.10? |
I'm +1 to make this breaking change in 7.10. To my understanding it should not break default setups, and perhaps only some rare cases where people manually add |
I don't think it will break anything important on Metricbeat. But I wonder if this can break some security use case where Filebeat parses the hostname from a log file, stores it in |
Replying to myself :D maybe an option to mitigate this is to keep old behaviour if the value in |
Closing this issue with two separate followup issues created:
|
We identified several common fields for host inventory schema and these fields include
host.id
andhost.name
.add_host_metadata
does not overwritehost.name
field with #14407 but nothost.id
.Things to consider:
add_host_metadata
to do nothing ifhost.*
fields already exist.host.*
fields don't get overwritten byadd_host_metadata
processor.add_observer_metadata
processor instead?cc @jsoriano
The text was updated successfully, but these errors were encountered: