最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

amazon web services - Can I have single AWS Firelens sidecar container to fetch logs from multiple containers running in cluster

programmeradmin1浏览0评论

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 0
Add a comment  | 

2 Answers 2

Reset to default 1

No, 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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论