How to increase syslog php 2048 max limit

Is there an easy way to log a message over 2048 char using syslog? for example, a raw curl request response.

// msg is a string > 2048 char. This truncates message to 2048 chars
syslog(LOG_DEBUG, msg);
+4
source share
1 answer

The 2K restriction can also come from rsyslog (this is the default restriction). You should be able to change it as follows:

$MaxMessageSize 10k

And put it somewhere at the beginning of the configuration:

Centralized rsyslog: maximum message size

+3
source

All Articles