-
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
host.name behavior inconsistent across the Elastic stack #13777
Comments
Hi @fgabolde, Thanks for opening this issue. There are actually some issues with these fields, specially when beats are run in namespaces networks in containers. A possible workaround for your case is to run filebeat container in the host network ( I am going to close this case by now as I think that whatever solution we implement for #13589 would also fix this. |
@jsoriano , I will subscribe to that issue to follow development, but I don't think it is the same problem. If Filebeat keeps setting If I understand your workaround, then Filebeat will set I guess my question is, who is right? The APM who assumes If Filebeat is right and the |
@fgabolde you are right, I was not thinking in cases where the parsed logs are from other machines. I will reopen this for this case. Thanks for the detailed explanations. |
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. |
Pinging @elastic/integrations (Team:Integrations) |
Hi! We're labeling this issue as |
there have been some enhancements but from what I can tell the overall situation here hasn't changed much... |
I should check if the bug is still present, but in the meantime I've been using container.id more which actually does work as intended. |
Hi! We're labeling this issue as |
I'm very confused about how
host.name
,agent.hostname
,observer.hostname
etc. are supposed to work.I have a fairly simple setup where my apps live in containers, Filebeat lives in a different container, and all the apps send JSON-formatted logs to Filebeat over UDP. I have no idea what value should be in
host.name
.The ECS states:
So that's pretty clearly the application's host. The APM dashboard seems to agree; when I click "Show host logs", it gives me logs filtered on
host.name
, with the application's hostname prefilled.But Filebeat disagrees. I've tried letting it do its own thing, and I've tried setting
host.name
in the application logs; in both cases, it overwriteshost.name
with its own hostname, so of course the log dashboard is empty, since all the traces have the application's hostname.I've come across a bunch of issues related to host.name but I have not been able to understand which behavior is considered a bug, the APM dashboard's or Filebeat's:
#13706
#13589
#12983
#12107
#10698
The text was updated successfully, but these errors were encountered: