-
Notifications
You must be signed in to change notification settings - Fork 320
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
[Fargate] [request]: Support kubernetes filter for fluentbit configuration #1197
Comments
kubernetes
filter for fluentbit configuration
Is there any idea of when this could be made available? Being able to associate logs with pod id, name etc. is extremely important in a large environment. |
Hello Team, Can someone please provide us the ETA for making this available for logging in EKS fargate. The current EKS Fargate Firelens doesn't support environment variables in the [FILTER] section on aws_logging config map. |
This is a major issue for my project right now, almost all of our apps are deployed into Fargate and we use AWS Elasticsearch for application logging. unlike AWS Cloudwatch output filter, which prefixes a fluentbit tag (containing pod metadata details), I can't do the same with Elasticsearch output plugin which is frustrating because I get logs from all pods (across all namespaces) running in Fargate and I can't find out which pod is sending the log, all I can see is the log record. I reached out the AWS support team on multiple occasions, but in-vain. And I can't find any workaround for this issue anywhere online. |
I'm honestly moving workloads off Fargate this week and last-week because of the poor log metadata and lack of EBS-CSI support. it's advertised as the next-big thing and the end-all-solution to containerized workloads, but Fargate Workers are not feature-complete compared to other types of Kubernetes workers. |
@santhoshratala, I am trying to enable fargate logging and send the logs to elasticsearch, however on elasticsearch I am not able to see the logs coming, If you have implemented this already can you help me with figuring out what might be wrong with this cofigmap The eks version is 1.19 and platform is eks.4
|
@Namrata3991 first of all, you need strictly four spaces indentation under [OUTPUT]. Spent a lot of time trying to figure that out myself with cloudwatch output. |
@luzhkovvv This documentation doesn't have 4 space indentation for elasticsearch example, though I tried it its not working at all, https://docs.aws.amazon.com/eks/latest/userguide/fargate-logging.html |
Knowing what pod a log record belongs to is fairly crucial when setting up EKS logging. Is there an ETA on this? |
Amazon EKS on AWS Fargate now Supports the Fluent Bit Kubernetes Filter: You can find the technical documentation here: https://docs.aws.amazon.com/eks/latest/userguide/fargate-logging.html#fargate-logging-kubernetes-filter |
Seems like it was not enabled for my cluster, because I can't get kubernetes metadata and i cant enable fluent-bit logs (flb_log_cw: "true"). I get a fault: |
You need EKS to be on these platforms: |
Thanks, I really have a eks.v2 version platform for eks1.21 |
We are also getting the same issue. any solution? |
Do you check you k8s version and platform level? |
After upgrading eks platform elvel, it is accepting this flag. |
I'm having issues making this work following the docs at https://docs.aws.amazon.com/eks/latest/userguide/fargate-logging.html#fargate-logging-kubernetes-filter. Would running kubernetes 1.21 on Posting my
|
David try removing the crio parser and filter. I don't have that one and it works. https://github.com/aws-quickstart/quickstart-eks-cdk-python/blob/main/cluster-bootstrap/eks_cluster.py#L1872 |
Thanks for the tip @jasonumiker ; unfortunately that still didn't do it for me. The quickstart you linked is great though; I did notice you have configuration there for deploying fluent-bit on its own through a helm chart, so I'm going to try that as well and see if I can get any more information about what might be wrong from the fluent bit pods. Edit: actually it works just fine with Fargate; my problem was the indentation. Even though the end-result Posting my updated ConfigMap:
|
Community Note
Tell us about your request
What do you want us to build?
Which service(s) is this request for?
Fargate on EKS
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
I am collecting fargate pods to CloudWatch Logs using fluentbit provided by AWS EKS.
It is mentioned in the docs [1] that kubernetes is a supported filter in filters.conf but however it is different from the my expectation.
I tried to use the fluentbit filter below on regular EKS node (v1.6.8, DaemonSet YAML as [3]) and fargate.
On regular EC2 node I can get
kubernetes
metadata such aspod_name
,namespace_name
,pod_id
,labels
etc.On the other hand, on fargete node there is no such information [2].
I would expect a fix for the issue.
[1]
[2]
[3]
Are you currently working around this issue?
I don't have workaround except giving up fargate and using EC2 worker nodes instead.
Additional context
None
The text was updated successfully, but these errors were encountered: