Skip to content

Commit

Permalink
Change Windows fluentbit configuration
Browse files Browse the repository at this point in the history
1. Move kubelet and kubelet events from Windows to dataplane log group
  • Loading branch information
KlwntSingh committed May 24, 2024
1 parent 18ebaf4 commit 7bd4f80
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions charts/amazon-cloudwatch-observability/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,22 @@ containerLogs:
Rotate_Wait 30
Refresh_Interval 10
Read_from_Head ${READ_FROM_HEAD}

[INPUT]
Name winlog
Channels EKS
DB C:\\var\\fluent-bit\\state\\flb_eks_winlog.db
Interval_Sec 60

[FILTER]
Name aws
Match dataplane.*
imds_version v2

[FILTER]
Name aws
Match winlog.*
imds_version v2

[OUTPUT]
Name cloudwatch_logs
Expand All @@ -345,10 +356,19 @@ containerLogs:
log_stream_prefix ${HOST_NAME}-
auto_create_group true
extra_user_agent container-insights

[OUTPUT]
Name cloudwatch_logs
Match winlog.*
region ${AWS_REGION}
log_group_name /aws/containerinsights/${CLUSTER_NAME}/dataplane
log_stream_name ${HOST_NAME}.windows.kubelet.kubeproxy.service
auto_create_group true
extra_user_agent container-insights
host-log.conf: |
[INPUT]
Name winlog
Channels EKS, System
Channels System
DB C:\\var\\fluent-bit\\state\\flb_system_winlog.db
Interval_Sec 60
Expand All @@ -362,7 +382,7 @@ containerLogs:
Match winlog.*
region ${AWS_REGION}
log_group_name /aws/containerinsights/${CLUSTER_NAME}/host
log_stream_prefix ${HOST_NAME}.
log_stream_name ${HOST_NAME}.windows.system.events
auto_create_group true
extra_user_agent container-insights

Expand Down

0 comments on commit 7bd4f80

Please sign in to comment.