-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(@aws-cdk/aws-ecs): SplunkLogDriver in Fargate PV 1.4 does not respect 'tag', but 'splunk-tag' instead #13881
Labels
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
Comments
bweigel
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Mar 30, 2021
SoManyHs
added
effort/small
Small work item – less than a day of effort
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Mar 30, 2021
mergify bot
pushed a commit
that referenced
this issue
Mar 30, 2021
…version 1.4 (#13882) Set `splunk-tag` when `tag` is set. This will keep the API constant, however it will add an additional `splunk-tag` in the key-value `Options` property in `AWS::ECS::TaskDefinition`s - `LogConfiguration`. This is a very pragmatic approach. Feel free to suggest something else. closes #13881 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
bweigel
added a commit
to bweigel/aws-cdk
that referenced
this issue
Mar 31, 2021
…latform version 1.4 (aws#13882)" This reverts commit e9d9299. Unfortunately the above commit leads to broken deployments that are caused by behaviors upstream (i.e. in the ECS backend): > Resource handler returned message: "Invalid request provided: Create TaskDefinition: Log driver splunk disallows options: splunk-tag (Service: AmazonECS; Status Code: 400; Error Code: ClientException; Request ID: d13abe56-36fa-4e81-b980-bf83789d4d0d; Proxy : null)" (RequestToken: 546a74e2-a2eb-ef75-43e7-231fe8927096, HandlerErrorCode: InvalidRequest) This means however, that the buggy behavior mentioned in aws#13881 persists.
hollanddd
pushed a commit
to hollanddd/aws-cdk
that referenced
this issue
Mar 31, 2021
…version 1.4 (aws#13882) Set `splunk-tag` when `tag` is set. This will keep the API constant, however it will add an additional `splunk-tag` in the key-value `Options` property in `AWS::ECS::TaskDefinition`s - `LogConfiguration`. This is a very pragmatic approach. Feel free to suggest something else. closes aws#13881 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
mergify bot
pushed a commit
that referenced
this issue
Apr 2, 2021
…platform version 1.4 (#13882)" (#13892) This reverts commit e9d9299. Unfortunately the above commit leads to broken deployments that are caused by behaviors upstream (i.e. in the ECS backend): > Resource handler returned message: "Invalid request provided: Create TaskDefinition: Log driver splunk disallows options: splunk-tag (Service: AmazonECS; Status Code: 400; Error Code: ClientException; Request ID: d13abe56-36fa-4e81-b980-bf83789d4d0d; Proxy : null)" (RequestToken: 546a74e2-a2eb-ef75-43e7-231fe8927096, HandlerErrorCode: InvalidRequest) This means however, that the buggy behavior mentioned in #13881 persists. I am in communication with AWS support on this issue and will keep you posted. Sorry to have caused that mess. I should have marked the PR #13882 as draft before everything was clear. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd
pushed a commit
to hollanddd/aws-cdk
that referenced
this issue
Aug 26, 2021
…version 1.4 (aws#13882) Set `splunk-tag` when `tag` is set. This will keep the API constant, however it will add an additional `splunk-tag` in the key-value `Options` property in `AWS::ECS::TaskDefinition`s - `LogConfiguration`. This is a very pragmatic approach. Feel free to suggest something else. closes aws#13881 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd
pushed a commit
to hollanddd/aws-cdk
that referenced
this issue
Aug 26, 2021
…platform version 1.4 (aws#13882)" (aws#13892) This reverts commit e9d9299. Unfortunately the above commit leads to broken deployments that are caused by behaviors upstream (i.e. in the ECS backend): > Resource handler returned message: "Invalid request provided: Create TaskDefinition: Log driver splunk disallows options: splunk-tag (Service: AmazonECS; Status Code: 400; Error Code: ClientException; Request ID: d13abe56-36fa-4e81-b980-bf83789d4d0d; Proxy : null)" (RequestToken: 546a74e2-a2eb-ef75-43e7-231fe8927096, HandlerErrorCode: InvalidRequest) This means however, that the buggy behavior mentioned in aws#13881 persists. I am in communication with AWS support on this issue and will keep you posted. Sorry to have caused that mess. I should have marked the PR aws#13882 as draft before everything was clear. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
In Fargate platform version 1.4 the Docker engine was replaced by containerd.
This results in a different behavior and setting
tag
inSplunkLogDriverProps
will not yield the expected result.Instead the new logging implementation in PV 1.4 expects
splunk-tag
, as outlined by my correpondence with the AWS support:I have not verified that this works, however I thought it reasonable to open an issue in case anyone else has this problem.
Reproduction Steps
I don't have a minimal example as of now, bur pretty much anyone using
will have noticed a difference in behavior, when the Fargate-PV-tag
LATEST
was rolled up to1.4
these past weeks.What did you expect to happen?
No Docker container id in my Splunk log-messages, when setting
tag: ''
(empty string).What actually happened?
Docker container id in my Splunk log-messages.
Environment
Comment
Don't know if this is a bug per se in the CDK, bc the behavior is as expected.
Also I can try and fix/implement this, probably starting here with something pragmatic?
@aws-cdk/aws-ecs/lib/log-drivers/base-log-driver.ts#L2-L9
aws-cdk/packages/@aws-cdk/aws-ecs/lib/log-drivers/splunk-log-driver.ts
Lines 132 to 148 in 7966f8d
What do you think?
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: