Skip to content
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

AWSX-1182 Override DD_LOG_LEVEL env var to WARN in the forwarder template #867

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading