On Tue, 2012-01-10 at 13:14 +0100, Peter Eisenlohr wrote:
Hi,
as requested by bazsi in the forums
http://www.syslog.org/forum/index.php?topic=1218.0
here's a patch against syslog-ng enabling it to handle log messages larger than the current 256k limit. This is done by extending NVTable's data structures from 16 to 32 bit. The patch also contains simple code for automatic resizing of the receive buffer. 'log_msg_size' is still honoured, though.
I have been using this to regularly receive multi-MB XML messages and process them into log files.
I developed the patch against 3.3.1, but also tested it with 3.3.3 and on x64 as well. 'make check' runs fine, too -- but still, use at your own risk.
Thanks for posting this here. I'll have to read this again when I have a little bit more thinking time and I'll check how the structures have grown and if there's padding or anything like that. Otherwise it looks nice. Thanks again. -- Bazsi