-
Notifications
You must be signed in to change notification settings - Fork 146
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
Using Elastic Agent with the k8s integration on AKS causes error spam #1614
Comments
As stated in #90, this is a blocker to the use Elastic agent on AKS:" |
I expect any container runtime which doesn't use the Or is there a more reliable way of extracting the container ID? |
Any chance to get this on 8.5.x ? Otherwise we would need to investigate other solutions for AKS monitoring. |
Running elastic agent in k8s is night mare for us for last few months and we end up dropping all non essential container and agent logs but the issue we have been observing is missing check-ins via agent logs and agents turning unhealthy and Huge memory consumption for all agents. Ref case below. Ref case - #1708 (comment) |
I'll do my best to merge a fix by the end of this week. |
Is it really fixed because it read in elastic/beats#33697 that this is a partial fix and a proper AKS/containerd support is required ? |
This one is closed, @cmacknz - can we please have a new ticket opened to address all AKS Elastic Agent issues? |
@fludo this issue is about the error spam that was caused by the wrong log level. This is fixed by elastic/beats#33697.
could you elaborate more on your expectations of exploiting the full potential? I might need to explain the cause of the issue – the error spam was caused by:
This matcher has the only purpose – to extract a container/pod ID from a filename of a container log file created by Docker (Docker puts this IDs in the filename).
This is what I meant by the proper But you are still able to ingest any file you want from inside a container running on AKS. It's just you would not have automatically enriched container/pod ID in your events. I hope this clarifies. |
@Happycoil it's in the 8.5 branch and will be released with the next 8.5.3 version. |
Yes there will be an 8.5.3 soon to make up for the short gap between 8.5.1 an 8.5.2 |
Using the default kubernetes integration on AKS, or apparently any k8s cluster using containerd, causes a lot of spam from filebeat with the log message
[elastic_agent.filebeat][error] Error extracting container id - source value does not contain matcher's logs_path '/var/lib/docker/containers/'.
. The spam is so intense it overloads the agents, causing them to ping-pong between healthy and unhealthy. Increasing their resource limits only intensifies the spam.I've just reconfirmed that this issue persists in a new Elastic Cloud instance and pointed it at a very vanilla AKS cluster. This is going to happen for every single customer of Elastic Cloud who deploys Elastic Agent to AKS.
This has been brought up in several issues and discuss threads over some time:
elastic/beats#27216
elastic/beats#27216 (comment)
#90
https://discuss.elastic.co/t/elastic-agent-fiebeat-error-spam/301206
https://discuss.elastic.co/t/elastic-agent-filebeat-logs-spams-error-messages-and-overflows-the-memory/289188
You can find more threads on discuss by searching for the error message, but none of the threads get answered.
We need some kind of confirmed workaround for this.
The text was updated successfully, but these errors were encountered: