Skip to content
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

Kubernetes attribute is missing in cloudwatch logs when fluentd read application logs from files system different from /var/log/containers/ #1489

Open
chanthakim20 opened this issue Mar 27, 2024 · 0 comments

Comments

@chanthakim20
Copy link

chanthakim20 commented Mar 27, 2024

Describe the bug

My application logs was written to file system and then in Fluentd configMap, we changed the source file location to a different directory from /var/log/containers;

Fluentd reads from files system for example /var/mylogs/*.log and writes logs to CloudWatch without adding kubernetes attribute

Currently I am using Fluentd to cloudwatch plugin: v1.16.2-debian-cloudwatch-1.0.

Please advise if there is a way to have kubernetes attribute by updating Fluentd configuration.

This is an example when the application write logs to standard output inside /var/log/containers/.log;
but when Fluentd read the logs from /var/mylogs/
.log, it doesn't include kubernetes attribute.

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant