log-pilot
log-pilot copied to clipboard
Collect logs for docker containers
您好, 请问,log-pilot能收集宿主机上的日志吗?比如/var/log/messages /var/log/dmesg这些文件的日志? 如果可以收集的话,需要怎么做?网上没有搜到相关信息,谢谢~
你好,我们现在在k8s上用到了log-pilot,但是k8s的业务容器收集的日志会偶发的出现日志无法收集的问题,当我们把业务容器重新部署或者重启之后就有可以收集了,并且把没有收集到的日志按当前时间写入到了es,这个问题一直存在。不知道是什么原因会导致这样的问题,麻烦进行解答下,谢谢。
volumes: - name: root hostPath: path: / 是挂载emptydir的目录?这个能优化吗
是否支持containerd
log-pilot不支持containerd引擎,现在k8s集群的版本高时,无法采集containerd容器引擎的日志
With current example, I can see logs on console. But when i change to output=file, I can see no file was created , nor log output on console, and no...
更改socket文件后 /run/k3s/containerd/containerd.sock time="2021-02-01T21:38:53+08:00" level=warning msg="error: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.23/events?filters=%7B%22type%22%3A%7B%22container%22%3Atrue%7D%7D: net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00".
- 我们使用 ES7 参考 [利用Log-Pilot + Elasticsearch + Kibana搭建kubernetes日志解决方案](https://help.aliyun.com/document_detail/86552.html?spm=5176.11065259.1996646101.searchclickresult.6f1d82edTIUf0b) 部署在k8s里,目前的log-pilot 日志如下: time="2020-06-23T00:34:19Z" level=info msg="logs: f60b4a968bed082020aa86db8764f11e30ba736e5120e92e0b115bd05efe7c4c = &{fm-radio-prod /host/var/lib/docker/containers/f60b4a968bed082020aa86db8764f11e30ba736e5120e92e0b115bd05efe7c4c nonex map[time_format:%Y-%m-%dT%H:%M:%S.%NZ] f60b4a968bed082020aa86db8764f11e30ba736e5120e92e0b115bd05efe7c4c-json.log* map[env:prod index:fm-radio-prod topic:fm-radio-prod] false true}" 但是ES中看不到索引... 另外: ``` -...
根据业务不同,日志推送到不同的ES实例。能否实现?