【发布时间】:2013-11-28 11:08:33
【问题描述】:
我希望我的 logstash 过滤器配置显示 Soap 消息和异常堆栈跟踪。我可以让它们单独工作,但不能一起工作。
谁能告诉我这是否可行或者我在下面的代码中犯了任何错误?
filter {
## 1. To show stacktrace
multiline {
type => "myLog"
pattern => "(^.+Exception: .+)|(^\s+at .+)|(^\s+... \d+ more)|(^\s*Caused by:.+)"
what => "previous"
}
## 2. To show the complete SOAP Sales with request/response.
## multiline {
## type => "myLog"
## pattern => "<MySalesDetails"
## negate => true
## what => "previous"
## }
## multiline {
## type => "myLog"
## pattern => "<MySalesResponse"
## negate => true
## what => "previous"
## }
}
【问题讨论】: