Skip to content

Commit

Permalink
Fix Default behaviour for EC2 log collection
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdog committed Dec 21, 2023
1 parent 31f73c6 commit c999eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ec2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class DatadogEcsDaemonService extends Construct {
...(props.logs?.enabled
? {
DD_LOGS_ENABLED: 'true',
DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL: props.logs.collectFromAllContainers ? 'true' : 'false',
DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL: props.logs.collectFromAllContainers !== false ? 'true' : 'false',
...(!props.logs?.collectFromAgentContainer
? {
DD_CONTAINER_EXCLUDE: 'name:datadog-agent',
Expand Down

0 comments on commit c999eec

Please sign in to comment.