Skip to content

Commit

Permalink
Override DD_LOG_LEVEL env var to WARN in the forwarder template (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0Aja authored Nov 15, 2024
1 parent e749356 commit 765053f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions aws/logs_monitoring/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ Parameters:
Type: String
Default: ""
Description: The name of an existing s3 bucket to use. If not provided, a new bucket will be created.
DdLogLevel:
Type: String
Default: "WARN"
Description: Set the log level for the forwarder. Valid values are DEBUG, INFO, WARN, ERROR, CRITICAL. If not set, default is WARN.
AllowedValues:
- DEBUG
- INFO
- WARN
- ERROR
- CRITICAL
Conditions:
IsAWSChina: !Equals [!Ref 'AWS::Partition', aws-cn]
IsGovCloud: !Equals [!Ref 'AWS::Partition', aws-us-gov]
Expand Down Expand Up @@ -336,6 +346,8 @@ Conditions:
- !Equals [!Join ["", !Ref VPCSecurityGroupIds], ""]
SetVpcSubnetIds: !Not
- !Equals [!Join ["", !Ref VPCSubnetIds], ""]
SetDdLogLevel: !Not
- !Equals [!Ref DdLogLevel, ""]
Rules:
MustSetDdApiKey:
Assertions:
Expand Down Expand Up @@ -524,6 +536,10 @@ Resources:
- SetDdTraceIntakeUrl
- !Ref DdTraceIntakeUrl
- !Ref AWS::NoValue
DD_LOG_LEVEL: !If
- SetDdLogLevel
- !Ref DdLogLevel
- !Ref AWS::NoValue
ReservedConcurrentExecutions: !If
- SetReservedConcurrentExecutions
- !Ref ReservedConcurrency
Expand Down Expand Up @@ -988,6 +1004,7 @@ Metadata:
- DdForwarderExistingBucketName
- DdForwarderBucketName
- DdStoreFailedEvents
- DdLogLevel
ParameterLabels:
DdApiKey:
default: "DdApiKey *"
Expand Down

0 comments on commit 765053f

Please sign in to comment.