I use rsyslog to upload logs to my Graylog server
/etc/rsyslog.conf
:
$InputFileName /var/log/apache-error.log
$InputFileFacility apache
$InputFileTag #apacheError:
$InputFileStateFile apache-error
$InputFileSeverity error
$InputRunFileMonitor
if $programname == '#apacheAccess' then @1.2.3.4:1514
Some long messages are truncated in Graylog (the end of the message is unavailable).
When I tried to upload a long message with netcat in UDP:
echo -n -e "$(for i in $(seq 0 64000); do echo -n '0123456789';done)" | nc -u 1.2.3.4 1514
The message is in Graylog (in multiple messages but all the message is available)
Why a part of a message from rsyslog is truncated, and a message from netcat not ?
Is a maximumSize parameter have to be increased or something ?
I tried
$MaxMessageSize 256k
$MainMsgQueueDequeueBatchSize 256
but without success
Thx