aws-samples / aws-samples/amazon-ecs-firelens-examples

Log driver awslogs disallows options: log_key

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
335
Forks
99
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am facing below error with ECS on Fargate platform while using fluentbit through awsfirelens for logging:
`An error occurred (ClientException) when calling the RegisterTaskDefinition operation: Log driver awslogs disallows options: log_key`

I have referred this example:

https://github.com/aws-samples/amazon-ecs-firelens-examples/tree/mainline/examples/fluent-bit/cloudwatchlogs

If I want to pick only log using log_key then what alternative do I have

Contributor guide

Open the contributing guide

Research direction

Start with the linked examples/fluent-bit/cloudwatchlogs example and the ECS Fargate awsfirelens configuration described in the report. Investigate how log_key is passed to the awslogs driver and identify a supported way to select logs by key; done means the task definition no longer produces the reported disallowed-options error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.