简体   繁体   中英

How to configure logentries in AWS ECS Task definition

I'm trying to configure logentries for a Task Definition on AWS ECS As you can see here "logentries" is available for container instances.

However I can not find any documentation or example about how to configure it. I've seen examples of other drivers: https://docs.aws.amazon.com/AmazonECS/latest/userguide/example_task_definitions.html

So I've tried to set the needed parameters defined in this documentation in the aws console: 在此处输入图像描述

However when I try to run a task with this configuration I get:

service my-service was unable to place a task because no container instance met all of its requirements. The closest matching container-instance is missing an attribute required by your task. For more information, see the Troubleshooting section.

Any ideas?

In the case of splunk logging in ECS (with EC2 instances as hosts with the ECS optimized image, and not Fargate), you had to explicitly boot the instance with splunk logging enabled, by setting ENV variable ECS_AVAILABLE_LOGGING_DRIVERS at boot time (you can use userdata for this). There is a similar option for logentries.

See https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html

Your error message is not about the configuration of logentries being incorrect, rather that logentries is unavailable altogether in the environment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM