log-pilot如何实现收集合并多行日志?
如果你就仅仅是打算合并入java的异常栈信息可以推荐如下做法,重新基于原始镜像集成一下 fluent-plugin-detect-exceptions 这个插件,这样就可以合并了 FROM registry.cn-hangzhou.aliyuncs.com/acs/log-pilot:0.9.7-fluentd
Use root account to use apk
below RUN includes plugin as examples elasticsearch is not required
you may customize including plugins as you wish
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories
&& apk add --no-cache --update --virtual .build-deps
build-base ruby-dev
&& apk add --update ruby-bigdecimal
&& gem install fluent-plugin-detect-exceptions --no-ri --no-rdoc
&& gem sources --clear-all
&& apk del .build-deps
&& rm -rf /home/fluent/.gem/ruby/2.5.0/cache/*.gem
&& mkdir /etc/fluentd/pluginconf/
COPY config.fluentd fluentd.tpl /pilot/
COPY google-exception-detect.conf /etc/fluentd/pluginconf/
如果你就仅仅是打算合并入java的异常栈信息可以推荐如下做法,重新基于原始镜像集成一下 fluent-plugin-detect-exceptions 这个插件,这样就可以合并了 FROM registry.cn-hangzhou.aliyuncs.com/acs/log-pilot:0.9.7-fluentd
Use root account to use apk
below RUN includes plugin as examples elasticsearch is not required
you may customize including plugins as you wish
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories && apk add --no-cache --update --virtual .build-deps build-base ruby-dev && apk add --update ruby-bigdecimal && gem install fluent-plugin-detect-exceptions --no-ri --no-rdoc && gem sources --clear-all && apk del .build-deps && rm -rf /home/fluent/.gem/ruby/2.5.0/cache/*.gem && mkdir /etc/fluentd/pluginconf/ COPY config.fluentd fluentd.tpl /pilot/ COPY google-exception-detect.conf /etc/fluentd/pluginconf/
最后的 google-exception-detect.conf 是从哪里来的 自己写么?