-
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
[Filebeat] The host.name sent from Filebeat doesn't match the same field from Metricbeat #13589
Comments
@simianhacker thanks for opening this issue, this will help to keep track of possible solutions for this issue. I think that the issue here is that in the reference configurations we are using host network for metricbeat, but not for filebeat. Then the hostname for metricbeat is the same as the hostname of its host, but the hostname for filebeat is the name of the pod ( There are some possible solutions to this:
|
This was fixed here: #12790, so deployments using newer manifests should not be affected. Do we still see this happening? |
Pinging @elastic/integrations-platforms (Team:Platforms) |
I've seen that our helm-charts have hostNetwork disabled by default: https://github.com/elastic/helm-charts/blob/480a19413024cab7f9ea96e2d40078bc2247ce2d/filebeat/values.yaml#L53, which would cause this issue. Maybe we can open a PR to switch the default to As for a longer term solution I think @jsoriano points here are good, some options are:
I like the first one more because it doesn't depend on the deployment model. In the past we discussed around the diference between K8S nodes hostname & node name, but in most cases they are the same, right? |
I think that Helm charts have hostNetwork disabled intentionally (cc: @jmlrt ). See https://github.com/elastic/observability-dev/issues/666#issuecomment-607220803. |
Yes, we have The main reason is that some K8S providers may not allow enabling But also that only one Filebeat/Metricbeat pod can be deployed per node with Note that we provide an option to enable |
in case anyone needs a quick fix when using k8s, until we have a proper solution for the different scenarios. This replaces the
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
pretty sure this same issue is still present when running in docker containers (and there is a larger "fix all the hostnames" issue for running beats in containers elsewhere that I can't find now... |
One of the common issues we see in the Infrastructure UI is that when shipping data from the same host for Metricbeat and Filebeat, the
host.name
does not match up. The Filebeathost.name
typically ends up looking likefilebeat-{some kind of hash id}
instead of the actual system hostname. This results in the following nodes on the waffle map:When you click on the
filebeat-
prefixed hosts to view the metric, you end up with nothing. Until this is fixed we can't move forward with plans to add logging metrics OR a log view to our detail page for any of the hosts. This also affects our Logging UI for all hosts (with metrics) becausehost.name
doesn't match any of the hosts logs; essentially "View logs" for hosts is broken.The text was updated successfully, but these errors were encountered: