aws-samples / aws-samples/amazon-ecs-firelens-examples
Log driver awslogs disallows options: log_key
- 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
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