Skip to content

Support automatic log group and stream creation in CloudWatch Logs sink #6861

Closed

Description

@bagmarnikhil

Is your feature request related to a problem? Please describe.

The CloudWatch Logs sink requires the log group and log stream to exist beforehand. If they don't, events fail and go to DLQ or retry indefinitely. This makes initial setup error-prone and prevents self-bootstrapping pipelines.

Describe the solution you'd like

A create_log_group_and_stream boolean config option (default false). When enabled, the sink creates the log group and log stream if they don't already exist.

sink:
  - cloudwatch_logs:
      log_group: /my/service/logs
      log_stream: my-stream
      create_log_group_and_stream: true

Additional context

Requires logs:CreateLogGroup and logs:CreateLogStream IAM permissions when enabled.

Activity

  1. dlvenable commented on May 18, 2026

    @dlvenable
    Member

    Should these be different configurations - create_log_group and create_stream? I could see some users having the ability to create the stream, but not the group. Also, I tend to think that creating the stream should be the default behavior. And we could even support dynamic streams in the future with this.

  2. added this to the v2.16 milestone on May 19, 2026
  3. added a commit that references this issue on May 21, 2026
    6617862
  4. added a commit that references this issue on Jul 1, 2026
    13eacb2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions