[syslog-ng] syslog-ng split long rows

Giovanni Mancuso giovanni.mancuso at par-tec.it
Fri Aug 14 11:55:08 CEST 2015


Hi,

Another information, if i add to source an unix-stream: Konsole output


Konsole output
source mailet_log {
       file("/opt/myApp/mylog.log" log_msg_size(11819200));
       unix-stream("/tmp/log" log_msg_size(11819200));
};

and i send 300000 char to unix socket, it works:
Konsole output
#!/usr/bin/perl

use strict;
use Socket;
use IO::Handle;

socket(TSOCK, PF_UNIX, SOCK_STREAM,0);
connect(TSOCK, sockaddr_un("/tmp/log")) or print("ERROR!");

my @chars = ("A".."Z", "a".."z");
my $string;
$string .= $chars[rand @chars] for 1..300000;

print TSOCK "$string\n";


The problem seems to be only with file () source.




Il 14/08/2015 11:24, Giovanni Mancuso ha scritto:
> Hi,
>
> I raised the  log_msg_size parameter to a very high value, but i have
> the same problem.
>
>
> Il 13/08/2015 21:57, Scheidler, Balázs ha scritto:
>>
>> Utf8 encoding may mean that a given amount of characters are encoded
>> using more bytes.
>>
>> Log-msg-size specifies the limit in bytes.
>>
>> On Aug 13, 2015 12:05 PM, "Giovanni Mancuso"
>> <giovanni.mancuso at par-tec.it <mailto:giovanni.mancuso at par-tec.it>> wrote:
>>
>>     Il 13/08/2015 11:43, Fabien Wernli ha scritto:
>>>     Look for `log-msg-size` option 
>>     Hi,
>>     i had this log_msg_size(81920) in source:
>>
>>     source mailet_log {
>>            file("/opt/myApp/mylog.log"log_msg_size(81920));
>>     };
>>
>>
>>     Thanks
>>
>>     -- 
>>
>>
>>     ______________________________________________________________________________
>>     Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>>     Documentation:
>>     http://www.balabit.com/support/documentation/?product=syslog-ng
>>     FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>>
>>
>
>
> -- 
>
>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>


-- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20150814/ea74c99c/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: giovanni_mancuso.vcf
Type: text/x-vcard
Size: 319 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20150814/ea74c99c/attachment-0001.vcf 


More information about the syslog-ng mailing list