loggie icon indicating copy to clipboard operation
loggie copied to clipboard

通过daemonset方式部署loggie,采集服务出现问题。

Open jackchen-2014 opened this issue 3 years ago • 1 comments

Ask your question here:

通过 daemonset方式部署loggie到k8s集群中,采集对应的服务。如果服务所在的pod不是一个容器,有其他的sidecar容器,那么,就会出现采集不到对应的日志问题异常。如果是单独部署服务,显示正常,这种case如何处理?

jackchen-2014 avatar Aug 10 '22 07:08 jackchen-2014

带有sidecar的容器,可以在file source里增加containername参数,指定采集的容器名称。 参考:https://loggie-io.github.io/docs/reference/discovery/kubernetes/logconfig/#sources

ethfoo avatar Aug 10 '22 08:08 ethfoo