-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log group and log name templating support in cloudwatch_logs
#285
Comments
cloudwatch_logs
cloudwatch_logs
I tried to use the
And have been getting this error,
This means the templating parameter is working, but it's not able to find the value of ecs_task_id in my case 👎🏽 |
The docs for the cloudwatch_logs support are here: https://docs.fluentbit.io/manual/pipeline/outputs/cloudwatch#log-stream-and-group-name-templating-using-record_accessor-syntax The feature is still a templating feature but it BOTH uses different syntax and also is not exactly the same feature. I can not inject ECS Metadata unlike the go plugin templating feature. To get metadata in your logs, there is this env var feature: https://github.com/aws/aws-for-fluent-bit/blob/mainline/use_cases/init-process-for-fluent-bit/README.md#how-init-process-works |
I got templating to work with |
@PettitWesley I was able to use the image with "init" script and use the |
Hi,
The documentation mentions that log group and log name templating support is not yet implemented in the new plugin (
cloudwatch_logs
): https://github.com/aws/amazon-cloudwatch-logs-for-fluent-bit#do-you-plan-to-deprecate-this-older-pluginHowever, this merged PR implemented that feature: fluent/fluent-bit#5633
So is the templating feature available in the new plugin?
I tried using the new plugin for creating custom log groups to for EKS Fargate logs, but doesn't seem to work and had to fallback to the old
cloudwatch
plugin.The text was updated successfully, but these errors were encountered: