rawlog data in a lua script

2022-07-28 Thread michael . zork
Hi, I'm searching for a possibility to have the rawlog feature in lua, which would be much easier for processing. Currently Dovecot, when activating rawlog for a user, writes everything to disk (which creates I/O), and I have to somehow read it from there. That's a bit complicated, because I

Re: rawlog data in a lua script

2022-07-28 Thread João Silva
Thanks a lot for this thread. I was starting to plan a system where multiples processes can write to a file and completely forgot that syslog is designed to do that. It is a perfect solution, I only had to configure a local facility to receive the data and add 3 lines of code to the program

Re: large search indexer tasks, submitted to flatcurve+tika+tesseract backend for attachment scanning, timeout even with "fts_index_timeout = 0"; how to increase/remove timeouts?

2022-07-28 Thread PGNet Dev
On 7/27/22 3:15 PM, Michael Slusarz wrote: where do I set that timeout to not fail, as above, on large index tasks? You need to change the source, as Tika has a hardcoded 60 second HTTP request limit. https://github.com/dovecot/core/blob/release-2.3.19/src/plugins/fts/fts-parser-tika.c#L76

Re: rawlog data in a lua script

2022-07-28 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
Hi - I use this python script to capture a socket (ie the log file) and then send it to syslog, i use this for all the systems that do not really support syslogging (apache etc) basic useage /usr/bin/nohup /programs/common/capture -s /usr/local/apache2/logs/httpd-access.log -l httpd -d

Re: rawlog data in a lua script

2022-07-28 Thread dovecot
> 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