首页 > 解决方案 > 用于登录 filebeat.yml 的多行模式表示法

问题描述

有人可以帮助我为以下登录 filebeat.yml 文件定义多行模式吗

<entry>
    <severity>FATAL</severity>
    <timestamp>2018-09-18 08:52:23:461 EDT</timestamp>
    <component>framework</component>
    <class>com.mt.xml.CustomerConfigUtil</class>
    <method>loadGlobalProperties</method>
    <arguments></arguments>
    <message>Global Properties re loaded successfully</message>
    <exception></exception>
</entry>

<entry>
    <severity>FATAL</severity>
    <timestamp>2018-09-18 08:52:23:486 EDT</timestamp>
    <component>framework</component>
    <class>com.mt.xml.CustomerConfigUtil</class>
    <method>loadCustomerProperties</method>
    <arguments></arguments>
    <message>Customer Properties re loaded successfully</message>
    <exception></exception>
</entry> 

当我试图匹配起跑线时

多行:模式:'^' 否定:错误匹配:之后

仍然将每一行作为单独的日志。你能提供正确的语法吗?谢谢!

标签: logstashelastic-stackfilebeat

解决方案


推荐阅读