Supported Backends
AWS CloudWatch
Configuring the AWS CloudWatch backend (Managed)
Getting Started
Make sure that you have the necessary AWS Credentials
and permissions set up.
AWS credentials are retrieved from the default credential chain.
Configuring Destination Fields
- AWS_CLOUDWATCH_LOG_GROUP_NAME
string
: Log Group Name. The group name of the CloudWatch Logs. If it does not exist it will be created automatically.- This field is required
- AWS_CLOUDWATCH_LOG_STREAM_NAME
string
: Log Stream Name. The stream name of the CloudWatch Logs. If it does not exist it will be created automatically.- This field is required
- AWS_CLOUDWATCH_REGION
string
: Region. The AWS region where the log stream is in. Region must be specified if it is not already set in the default credential chain.- This field is optional
- AWS_CLOUDWATCH_ENDPOINT
string
: Endpoint. The CloudWatch Logs service endpoint which the requests are forwarded to.- This field is optional
- AWS_CLOUDWATCH_LOG_RETENTION
string
: Log Retention. LogRetention is the option to set the log retention policy for only newly created CloudWatch Log Groups. The value is in days, 0 = Never Expire. This value can also be changed later-on via the AWS console (UI) or AWS API, it’s not a permanent decision once set. Also, the value here might not reflect the actual retention value in the destination if it was modified or some automatic policy is applied.- This field is optional and defaults to
0
- This field is optional and defaults to
- AWS_CLOUDWATCH_TAGS
{ key: string; value: string; }[]
: Tags. Tags is the option to set tags for the CloudWatch Log Group. If specified, please add at most 50 tags. Keys must be between 1-128 characters and follow the pattern: (alphanumerics, whitespace, and _.:/=+-!). Values must be between 1-256 characters and follow the pattern: (alphanumerics, whitespace, and _.:/=+-!).- This field is optional
- AWS_CLOUDWATCH_RAW_LOG
boolean
: Raw Log. If set to true, only the log message will be exported to CloudWatch Logs. This needs to be set to true for EMF logs.- This field is optional and defaults to
False
- This field is optional and defaults to
- If the log group and/or log stream are specified in an EMF log, that EMF log will be exported to that log group and/or log stream (i.e. ignores the log group and log stream defined in the configuration).
- The log group and log stream will also be created automatically if they do not already exist.
- Example of an EMF log with log group and log stream:
- Resource ARNs (Amazon Resource Name (ARN) of the AWS resource running the collector) are currently not supported with the CloudWatch Logs Exporter.
Adding Destination to Odigos
There are two primary methods for configuring destinations in Odigos:
Using the UI
1
Use the Odigos CLI to access the UI
2
Click on Add Destination
, select AWS CloudWatch
and follow the on-screen instructions
Using Kubernetes manifests
1
Save the YAML below to a file (e.g. cloudwatch.yaml
)
2
Apply the YAML using kubectl