Omega Zeng
Omega Zeng
Issue PR都没人理。 阿里托管的k8s已经预装logtail,这个项目为何不关闭?
同样的问题。 看了log-pilot生成的fluentd配置文件,并没有把 json日志中的log字段设置为root key。 ```conf @type tail tag docker.a1c54fef9b8dc2ea9294a6ed66a37da8223b94bc6a6054e9bd84f3f48e0c3cb0.istio-app-log3 path /host/var/lib/docker/containers/a1c54fef9b8dc2ea9294a6ed66a37da8223b94bc6a6054e9bd84f3f48e0c3cb0/a1c54fef9b8dc2ea9294a6ed66a37da8223b94bc6a6054e9bd84f3f48e0c3cb0-json.log @type json time_format %Y-%m-%dT%H:%M:%S.%NZ keep_time_key true read_from_head true pos_file /pilot/pos/a1c54fef9b8dc2ea9294a6ed66a37da8223b94bc6a6054e9bd84f3f48e0c3cb0.istio-app-log3.pos ```
> 你好,鉴于公司使用Java并将其服务部署于K8S集群中,日志收集工作成为了难点。经过多方面的选择,目前尝试使用Log-pilot收集,但遇到一个问题就是当java 服务报错时它的日志内容为多行的,目前我通过filebeat-->logstash-->es-->kibana的方式来操作时kibana展示的日志内容都是一行一行输出,请问通过filebeat镜像时,多行日志信息合并一行的问题现在可以解决么?目前用的是log-pilot:0.9.7-filebeat这个版本,看先前的ISSUE中提到修改filebeat.tpl添加: > multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}' > multiline.negate: true > multiline.match: after > multiline.max_lines: 10000 > 未生效(我这边主要想以日期开头部分的整合为一行) 可以在先前的ISSUE中回复,不需要另起一个issue 不生效是什么意思。你是怎么操作的。
> 你们用的什么版本?0.9.7吗? > 我刚配置了一下: > > ``` > {{range .configList}} > - type: log > enabled: true > paths: > - {{ .HostDir }}/{{ .File }} > multiline.pattern: '^[[:space:]]+(at|\.{3})[[:space:]]+\b|^Caused by:'...
> @omegazeng 是的,我基于`registry.cn-hangzhou.aliyuncs.com/acs/log-pilot:0.9.7-filebeat`版本重做了一个镜像,替换`filebeat.tpl `文件,但是报错了。 > 正则表达式是参考:https://www.elastic.co/guide/en/beats/filebeat/current/multiline-examples.html#multiline-examples 替换`filebeat.tpl `文件报错了,什么意思?怎么替换的。 这个文件是在重新构建log-pilot镜像时替换的。 下面简单记录了我的操作。 ### 首先根据自己业务的日志格式,编写用于匹配多行日志的正则,你参考的[filebeat正则表达式](https://www.elastic.co/guide/en/beats/filebeat/current/multiline-examples.html#multiline-examples)文档是中还有用于测试正则的说明,可以在线测试你的日志内容和正则表达式 https://play.golang.org/p/uAd5XHxscu ### 重新构建log-pilot镜像 以下是我的模板文件和Dockerfile * filebeat.tpl ```tpl {{range .configList}} - type: log enabled: true paths: - {{ .HostDir...
basically the same. I want to find an easy way to backup databases then I get [jmfederico/run-xtrabackup.sh](https://gist.github.com/jmfederico/1495347). mariabackup is a little different from xtrabackup. at first, I change the script...
> Thanks for sharing this. To be honest I have given up using this script because it freezes the db during backups even for read access. Finally mysqldump seems more...
> dockerhub的镜像是考虑了不同架构的 > > https://github.com/Leizhenpeng/feishu-chatgpt/blob/8e1d1bb386bbe9018b32c3e9f3136c8f559a1c96/.github/workflows/docker-publish.yml#L53 > > 解决办法参考 [#39 (comment)](https://github.com/Leizhenpeng/feishu-chatgpt/issues/39#issuecomment-1455431284) 这个配置是没有问题的,但是Dockerfile中GOARCH=amd64,只会编译出amd64的二进制文件,所以建议去掉这个参数,让编译器自行根据编译的平台架构选择。
我本地测试过了,可以正常运行。 ```text ubuntu@ubuntu:~/feishu-chatgpt$ git diff diff --git a/Dockerfile b/Dockerfile index 779a67a..36a9da9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ ENV GO111MODULE=on \ WORKDIR /build ADD /code /build -RUN CGO_ENABLED=0...
Thx.