-
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
[libbeat] add_cloud_metadata processor logs confusing warnings for AWS even when running on other CSPs #35147
Comments
the way this processor works is kinda weird. for example, even if the token request fails, a fetcher is still added to the list. if we are running outside a CSP, we end up with two separate errors (1 for the token, then 1 for the metadata request). the token timeout logs a warn log (e.g. it would be preferable not to add the fetcher if the token request fails. if we are running in a CSP, then the token request fails due to 404, but the fetch happens, again logging a debug message. a reasonable solution to this IMO would be to handle the 404s in the token requester as a special case, and in the case of any token request failures, avoid adding the fetcher at all. this way we log no AWS related errors at all when running on other CSPs. it still means we log errors when running outside of CSPs, but i'd say these are expected if you're running the |
The The warnings come from the getIMDSv2Token() function. @tommyers-elastic, IIRC, you think we should keep this log level here, right? |
@aspacca, I see you introduced the support for IMDSv2 in the processors: do you have thoughts on this topic? Would change the log level from "warning" to "debug" make sense? Or considering the timeout error condition as a "we are not on AWS" hint? |
@zmoog the ì
I'm fine with both: while it will be expected that most of the time the |
This issue appears to be related to the number (2) bullet in #33058. |
seems to be fixed with #36829 confirmed closing the issue |
When running filebeat on GCP for example, we get log messages at WARN level from the AWS EC2 provider, which could be confusing to the user.
e.g.
The text was updated successfully, but these errors were encountered: