-
Notifications
You must be signed in to change notification settings - Fork 40
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
Application log group not created after deploying FluentBit #35
Comments
@steveellis , Is following managed IAM policy attached to your EKS cluster specific NodeGroup NodeInstanceRole ? If not, please attach that and it will create the application, dataplane and host specific LogGroups in CloudWatch.
|
@sunnygoel87 thanks again for your help. Yes the
Code for all this starts here which is where the managed policy is referenced. |
@steveellis - I normally use terraform/eksctl Iac tools to provision the EKS cluster on AWS. But regardless of the IaC tool being used to create the cluster, as long as you can see the CloudWatch managed policy attachment to Node group node instance role in IAM console, then it should be fine. Could you please retrieve the fluentbit pod log again and share the same here? The 1st shipment of pod logs were more about starting the container, testing connectivity with k8s API server etc. |
@sunnygoel87 thanks for the idea of checking the console. Indeed the managed policy wasn't there, so my IaC code wasn't adding the managed policy to the role. So I decided to add the Sadly that hasn't made the application logs appear in CW. Some screenshots from the console. Here's the logs from one of the FB pods (maybe that
|
Hi @steveellis, could you provide the config files for the FluentBit deployment? Maybe that might give us an idea for the issue as I'm trying to reproduce it on my end. |
Hi @ruthvik17 - I'm just installing the helm chart without customization of the fluentbit config. In other words it's your chart's fluentbit config. I see that the config makes some assumptions about where the logs are in the cluster. Is this location consistent in all EKS deployments? We haven't changed our log locations AFAIK. |
@ruthvik17 these are the FluentBit config files that I'm referring to above. We're not modifying these. Also we're running k8s version 21.1 without any changes to the default pod logging configuration. I can see a given pod's application logs with the standard |
Hi @steveellis , I'm not sure if the issue that I raised with FluentBit might have been causing this bug as well. But, can you please pull down the new code with the applied fix and try again. I ran it on my local setup and it worked as expected where I could see updated logs for all the log groups. |
Thanks @ruthvik17. I'm out until Monday. Will give it a try then and let u know. |
@ruthvik17 I have installed 0.5.0 and still am not getting the application logs (only performance) in the console.
However if I install everything via the command provided here everything works. I can see in a FB pod's logs that events are being sent (messages like
Perhaps the solution is in the diff between what your chart is doing for config and what this yaml is doing. |
Hi @steveellis, thanks for bringing this up. I'll look into this and let you know. |
Have there been any findings on this? I'm having the same issue with the same setup. I'm running in us-gov-west-1. |
I was able to get the application, dataplane, and host log groups to be created finally after changing the daemonset configuration to use hostNetwork: true. It still does has not created the performance log group, but looking into that now. |
This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled |
This issue was closed because it has been marked as stale for 30 days with no activity. |
I'm deploying the FluentBit part of this chart. Here's what my pods look like:
The docs say here that 4 log groups should be created once the pods are deployed. But in the CloudWatch dashboard I only see one group
/performance
for the cluster.What additional config do I need to see application logs? The only thing I'm doing now is setting
fluentBit.enabled
to true in the values.My pods generate logs (I can see them by doing
kubectl logs <pod name>
at least).The logs for a given fluent-bit pod look like this:
The text was updated successfully, but these errors were encountered: