aws / amazon-cloudwatch-logs-for-fluent-bit

A Fluent Bit output plugin for CloudWatch Logs
Apache License 2.0
170 stars 49 forks source link

Separate log groups for each different application and Log stream for each pod of that application #344

Open abhiptl opened 1 year ago

abhiptl commented 1 year ago

All applications logs are sent to same log group "/aws/containerinsights/<>/application.

This becomes very difficult to search application logs. Application can be your custom application or kubernetes applications like keda, karpenter, aws-alb-controller, argocd.

This will allow to have separate log group for each application and easy search

piotrgo commented 11 months ago

Hi @abhiptl there is already an example for what you would like to achieve

log_group_name /eks/$(kubernetes['namespace_name'])/$(kubernetes['pod_name'])

Cheers