简体   繁体   English

使用 EKS 中的流利位在 AWS cloudwatch 中自动创建日志组

[英]Automatic log group creation in AWS cloudwatch using fluent bit in EKS

Is there a way to automatically ship the logs from EKS pods to cloudwatch using fluent bit whenever new pods come up?有没有办法在新的 pod 出现时使用 fluent bit 自动将日志从 EKS pod 发送到 cloudwatch? I am able to send the logs by adding INPUT, FILTER, OUTPUT section in fluent-bit configmap whenever we need to deploy a new service.每当我们需要部署新服务时,我都可以通过在 fluent-bit configmap 中添加 INPUT、FILTER、OUTPUT 部分来发送日志。 But this process is cumbersome.但是这个过程很麻烦。 Is there a way to automate this part?有没有办法使这部分自动化? like when we do a new deployment, fluent bit sees the new pods and ships the log to specific log group in cloudwatch.就像我们进行新部署时一样,fluent bit 会看到新的 pod 并将日志发送到 cloudwatch 中的特定日志组。

Thanks in advance.提前致谢。

Your input paths have specific expression that capture only certain logs:您的输入路径具有仅捕获某些日志的特定表达式:

/var/log/containers/ grafana .log /var/log/containers/ grafana .log

/var/log/containers/ memsql .log,/var/log/containers/ studio .log /var/log/containers/memsql.log,/var/log/containers/studio.log _

No custom location seen in your config.在您的配置中没有看到自定义位置。 Anyway, you can follow EKS container insights (with fluent-bit) here which you do not need to change your config every time a new workload is introduced.无论如何,您可以在此处关注 EKS 容器洞察(使用 fluent-bit),您无需在每次引入新工作负载时更改配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM