当我有规则的时候
if ($msg contains "foobah"
OR re_match($msg, '(authmgr|cli)\[[0-9]+\]:')
)
then {
rsyslog最后抛出了一个分段错误。甚至当我注释掉包含
re_match
它仍然会抛出一个分段错误。
rsyslogd 8.24.0-34.el7, compiled with:
PLATFORM: x86_64-redhat-linux-gnu
PLATFORM (lsb_release -d):
FEATURE_REGEXP: Yes
GSSAPI Kerberos 5 support: Yes
FEATURE_DEBUG (debug build, slow code): No
32bit Atomic operations supported: Yes
64bit Atomic operations supported: Yes
memory allocator: system default
Runtime Instrumentation (slow code): No
uuid support: Yes
Number of Bits in RainerScript integers: 64
authmgr[123]:
或
cli:[456]:
有人能确认正则表达式的格式是正确的,并解释为什么注释掉那一行会导致分段错误吗?