log_retention_days
Parameter Not Applied to CloudWatch Logs Due to Inaccessibility of Record Data
#9854
Labels
log_retention_days
Parameter Not Applied to CloudWatch Logs Due to Inaccessibility of Record Data
#9854
Bug Report
Describe the bug
The
log_retention_days
parameter is ignored because it cannot access record data via record_accessor. In contrast,log_stream_template
andlog_group_template
can. Consequently, when a new log group is created, the retention setting defaults to "Never expire."eg.: record:
fluentbit output configuration:
Although Fluent Bit successfully pushes logs to CloudWatch, it sets their retention to "Never expire," which can be problematic.
To Reproduce
Expected behavior
The log retention settings defined in Fluent Bit are accurately propagated to CloudWatch. This means that the specified retention period should be applied automatically, ensuring logs are kept only for the intended duration.
Your Environment
Additional context
This feature is particularly useful because it allows you to configure the retention period based on specific Kubernetes namespaces, deployments, and more. Moreover, the legacy Go CloudWatch plugin offers this capability.
The text was updated successfully, but these errors were encountered: