我有标准的 syslog_rules.xml (OSSEC 2.6.0)。这是/var/log/messages
文件中坏词的标准规则:
<var name="BAD_WORDS">core_dumped|failure|error|attack|bad |illegal |denied|refused|unauthorized|fatal|failed|Segmentation Fault|Corrupted</var>
.....
<rule id="1002" level="2">
<match>$BAD_WORDS</match>
<options>alert_by_email</options>
<description>Unknown problem somewhere in the system.</description>
</rule>
.....
如何添加或修改使用$BAD_WORDS
但不包括该auxpropfunc error
短语的规则?也就是说,像这样:
<match>$BAD_WORDS</match>
<match>!auxpropfunc error</match>
<options>alert_by_email</options>
有任何想法吗?