admin管理员组文章数量:1022516
I have ECS cluster configured on EC2 instances which has a set of services running in it. I've configured AWS Firelens sidecar container to route the ECS container logs to AWS Data firehose.
As per my current setup I have the sidecar container running for each and every ECS service in the cluster.
Lets say, If I have 3 services running, I have 3 sidecar containers running for log routing.
Is there any way were I can just have one sidecar container which can get the logs from all the containers running in the cluster?
Thanks.
I have ECS cluster configured on EC2 instances which has a set of services running in it. I've configured AWS Firelens sidecar container to route the ECS container logs to AWS Data firehose.
As per my current setup I have the sidecar container running for each and every ECS service in the cluster.
Lets say, If I have 3 services running, I have 3 sidecar containers running for log routing.
Is there any way were I can just have one sidecar container which can get the logs from all the containers running in the cluster?
Thanks.
Share Improve this question asked Nov 19, 2024 at 12:05 PrathyushPrathyush 133 bronze badges 02 Answers
Reset to default 1No, the sidecar needs to be running in the same ECS task as the containers generating the logs.
ECS does support daemonsets though. In that case you would have one log container for each EC2 instance.
Here is an article from AWS about using Fluent Bit as a log daemon: https://aws.amazon/blogs/opensource/centralized-container-logging-fluent-bit/
Not sure about AWS Firelens though
I have ECS cluster configured on EC2 instances which has a set of services running in it. I've configured AWS Firelens sidecar container to route the ECS container logs to AWS Data firehose.
As per my current setup I have the sidecar container running for each and every ECS service in the cluster.
Lets say, If I have 3 services running, I have 3 sidecar containers running for log routing.
Is there any way were I can just have one sidecar container which can get the logs from all the containers running in the cluster?
Thanks.
I have ECS cluster configured on EC2 instances which has a set of services running in it. I've configured AWS Firelens sidecar container to route the ECS container logs to AWS Data firehose.
As per my current setup I have the sidecar container running for each and every ECS service in the cluster.
Lets say, If I have 3 services running, I have 3 sidecar containers running for log routing.
Is there any way were I can just have one sidecar container which can get the logs from all the containers running in the cluster?
Thanks.
Share Improve this question asked Nov 19, 2024 at 12:05 PrathyushPrathyush 133 bronze badges 02 Answers
Reset to default 1No, the sidecar needs to be running in the same ECS task as the containers generating the logs.
ECS does support daemonsets though. In that case you would have one log container for each EC2 instance.
Here is an article from AWS about using Fluent Bit as a log daemon: https://aws.amazon/blogs/opensource/centralized-container-logging-fluent-bit/
Not sure about AWS Firelens though
本文标签:
版权声明:本文标题:amazon web services - Can I have single AWS Firelens sidecar container to fetch logs from multiple containers running in cluster 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745563173a2156285.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论