Rainer Gerhards 76e252a2d9 fix copyright
I used the CC anonymizer as copy template, but removed all of the
actual CC anonymization part.
2014-04-15 15:40:30 +02:00
..
2014-04-15 15:40:30 +02:00

fac-sever-rewrite.py
====================

This plugin permits rewrite the facility and severity of messages.
The code needs to be customized to match the actual use case.

The code as is simply increments the message severity by one.

Note: interface.input **must** must be set to "fulljson".

How to use?
-----------

You need to load mmexternal plugin as interface and configure it
to call fac-sever-rewrite.py:

Snippet of rsyslog.conf:

module(load="mmexternal") # do this only once

if( *whatever filter here* ) then {
    action(type="mmexternal" binary="/path/to/fac-sever-rewrite.py"
           interface.input="fulljson")
   
}