rawlog data in a lua script

dovecot at ptld.com dovecot at ptld.com
Thu Jul 28 13:27:31 UTC 2022


> I'm searching for a possibility to have the rawlog feature in lua, which would be much easier for processing. 
> 
> It would be much easier to hook to the "raw request and response events" inside Dovecot and have the rawlog-data in a lua script,
> where I can prepare it and send it to another maschine for monitoring/collection/analysis/statistics or similar, for example via HTTP. 


rsyslog has this feature (omprog) allowing you to setup any script/program for it to pipe logs to in real time.

    https://www.rsyslog.com/doc/master/configuration/modules/omprog.html
    https://github.com/rsyslog/rsyslog/blob/master/plugins/external/INTERFACE.md

Works similar in concept to postfix policy servers if you are familiar with them.


More information about the dovecot mailing list