Closed voltairevi closed 4 years ago
Am I correct to assume that the plugin
log_group_aws_tags
only accepts string in this format{ "tag1": "value1", "tag2": "value2" }
?
Correct.
Would appreciate any guidance on achieving this goal. Thanks!
log_group_aws_tags handles Hash object. But extract_placeholders does not handle Hash object but handles String object.... This feature request should be difficult to achieve this....
Problem
For billing use mostly, I am trying to add AWS tags based on namespaces to dynamically created log groups but unable to do so. ...
Steps to replicate
I've created a custom helm chart to apply fluentd to my eks cluster. Nonetheless, deployment to k8 is standard.
Here's a snippet of my fluentd.conf:
I've tried different variations of passing namespace_name "'${namespace_name}'", "'#{namespace_name}'". etc but end up getting this error,
Expected Behavior or What you need to ask
Basically, I was hoping to pass
namespace_name
as an aws tag, so when the log group gets created, it will be assigned a tag which will have the namespace.Am I correct to assume that the plugin
log_group_aws_tags
only accepts string in this format{ "tag1": "value1", "tag2": "value2" }
? Would appreciate any guidance on achieving this goal. Thanks!...
Using Fluentd and CloudWatchLogs plugin versions
cloudwatch_agent: amazon/cloudwatch-agent:1.230621.0 fluentd: fluent/fluentd-kubernetes-daemonset:v1.7.3-debian-cloudwatch-1.0 EKS running kubernetes v1.14