Skip to content

Support for KMS in CloudWatch logs output #605

@bonclay7

Description

@bonclay7

Describe the question/issue

I believe this is more related to a feature request than a bug.

I would like to have a KMS key arn as one of the parameters for the CloudWatch Logs output. Certain customers have an enforced policy to use a KMS encryption key for their logs. One workaround is to pre-create the log group and use a fix log group name and all log streams created by FluentBit.

However, if I have a log_group_template that allows dynamic log groups creation, a best scenario would be to provide a kms key into the config.

Happy to have suggestions as well

Configuration

cloudWatchLogs:
  enabled: true
  region: ${aws_region}
  # logGroupName is a fallback to failed parsing
  logGroupName: /aws/eks/observability-accelerator/workloads
  logGroupTemplate: /aws/eks/observability-accelerator/${cluster_name}/$kubernetes['namespace_name']
  logStreamTemplate: $kubernetes['container_name'].$kubernetes['pod_name']
  log_key: log
  log_retention_days: ${log_retention_days}

Fluent Bit Version Info

Using https://github.com/aws/eks-charts/tree/master/stable/aws-for-fluent-bit at 0.1.24

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature request or enhancement on existing features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions