使用多行解析器在Fluentd中解析Spring Boot的Stacktrace日志时出错

时间:2020-02-05 08:01:08

标签: spring-boot docker elasticsearch fluentd

我试图在提交给Elasticsearch之前使用Fluentd的多行解析器来解析Spring Boot应用程序日志。它在Stacktrace和其他日志中均正常工作。如果我从文件中读取日志。

enter image description here

但是当我使用Fluentd通过使用日志记录驱动程序直接从Spring引导容器中接收日志时,解析stacktrace日志时出错,但是其他都可以。

enter image description here

我在Fluentd文档页面上发现,除in_tail之外,其他输入插件均无法与multiline一起使用。因此,我不确定如何实现这一目标。我看到有人提到 fluent-plugin-detect-exceptions或fluent-plugin-concat,但我找不到如何使用它或将多行连接后如何解析日志的好例子。

0 个答案:

没有答案