Tengo el estándar syslog_rules.xml (OSSEC 2.6.0). Esta es la regla estándar para las malas palabras en el archivo /var/log/messages
:OSSEC | Cómo agregar una regla de excepción
<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>
.....
¿Cómo puedo añadir o modificar esta regla utilizada por $BAD_WORDS
, pero excluye la frase auxpropfunc error
? Es decir, algo como esto:
<match>$BAD_WORDS</match>
<match>!auxpropfunc error</match>
<options>alert_by_email</options>
¿Alguna idea?