logstash - 用于登录 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>
当我试图匹配起跑线时
多行:模式:'^' 否定:错误匹配:之后
仍然将每一行作为单独的日志。你能提供正确的语法吗?谢谢!
解决方案
推荐阅读
- ios - TableView 中的 SwiftyJSON 和 Alamofire 数据解析(iOS,Swift 4)
- bash - 工匠键保存到变量
- java - Java 8 Optional.ofNullable.map 产生非静态方法引用错误
- javascript - 显示div选定选项包含特定文本
- c# - 具有奇怪列表问题的复杂 JSON 序列化 - 使用 Json.Net
- c# - Outlook - 只有第一个“getVisible”调用 contextMenu
- node.js - “首先”钩子随机出现在我的测试中
- javascript - Phoenix,在模板 eex 中使用 socket.js 之外的套接字和 Presence
- ruby-on-rails - NoMethodError(nil:NilClass 的未定义方法 `charset='):使用 rails 发送电子邮件时
- python - 使用 Python 模块 Academic.py 的正确方法是什么?