Closed tczaude closed 5 months ago
Problem not exist always is dependency by logger. Sample example
php -r 'openlog("myScriptLog", 0, LOG_LOCAL0); syslog(LOG_INFO, str_repeat("x ", 60000));'
metalog truncate to 4096 signs.
Currently you can't configure the length of the log entries. Unfortunatelly they are hardcoded by a define in metalog.h:
So you would have to change that and recompile :-(
Hi Thanks for answer. I'am blind :/ Patch and recompile is not problem i use Funtoo :) i change this value end nothing happend this same result :( I propably see problem with buffer. When i increse array size buffer metalog stop loging above command.
You are right. Even the buffer[] in process_log() is hard coded. This might be the reason, why the original authors limited it: https://tools.ietf.org/html/rfc5426#section-3.2
It might be worth a try:
I have no idea, why the syslog read is handled differently than the kernel log read. There must be a reason...
There seems to be no more need for longer log entries. My personal view: a log line longer than 4096 characters is no log entry any more. In case there really is so much information, it most probably is a good idea to break it down to separate lines. If there is's no other opinion, I will close this issue very soon.
Closed, as mentioned (not as "soon" as originally thought :-)
Hi i have problem My web app send very big msg. metalog truncate this to some around 2000 signs. How i can increase this limit ?