![](/img/trans.png)
[英]How to disable JSON format and send only the log message to Sumologic with Fluentbit?
[英]How to disable JSON format and send only the log message to Cloudwatch with Fluentbit?
我正在尝试为我的 Fargate 任务设置 Firelens。 我想将日志发送到多个位置,Cloudwatch 和 Elasticsearch。
但只对 Cloudwatch 我想禁用 JSON 格式并仅按原样发送日志消息。
我有 Cloudwatch output 的以下配置。
[OUTPUT]
Name cloudwatch
Match *
auto_create_group true
log_group_name /aws/ecs/containerinsights/$(ecs_cluster)/application
log_stream_name $(ecs_task_id)
region eu-west-1
目前日志是这样的,
{
"container_id": "1234567890",
"container_name": "app",
"log": "2021/08/10 18:42:49 [notice] 1#1: exit",
"source": "stderr"
}
我只想要这条线,
2021/08/10 18:42:49 [notice] 1#1: exit
在云观察中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.