我正在使用来自http://people.apache.org/~sdeboy/
的电锯 2.1.0 快照
我能够将其设置为解析日志文件,但它总是将多行消息拆分为多个单行消息(包括所有其他字段都放入第一条消息中)
如何使其正确解析多行消息?有什么解决方法或替代方法吗?
编辑:文件中的几行:
[<proceed>(2)] INFO 2013-01-16 05:04:23,728 xmlstream.py:start_tls:740 ::: Negotiating TLS :::
[<proceed>(2)] INFO 2013-01-16 05:04:23,729 xmlstream.py:start_tls:741 ::: Using SSL version: 3 :::
[<proceed>(2)] DEBUG 2013-01-16 05:04:23,838 xmlstream.py:start_tls:809 ::: CERT: -----BEGIN CERTIFICATE-----
MIIDaDCCAtGgAwIBAgIKMfrHUQAAAABbMDANBgkqhkiG9w0BAQUFADBGMQswCQYD
VQQGEwJVUzETMBEGA1UEChMKR29vZ2xlIEluYzEiMCAGA1UEAxMZR29vZ2xlIElu
dGVybmV0IEF1dGhvcml0eTAeFw0xMjA2MDUwMDUyMTRaFw0xMzA2MDUwMTAyMTRa
MGMxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1N
...
Zfhf9Lio+EplEmBc
-----END CERTIFICATE-----
:::
并且日志格式是"[NDC] LEVEL TIMESTAMP FILE:METHOD:LINE ::: MESSAGE :::"
(我试图在消息之前和之后放置唯一的分隔符以帮助解析)