Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Centralized rsyslog : max size of message

I configured a centralized syslog on Ubuntu 12.04.

I set the max message size on both servers

$MaxMessageSize 20k

I have 2 different comportment :

  • client : message are logged completly
  • server : message are truncated at 2k

I can find configuration of any other buffer size.

Is it a limitation of rsyslog or a configuration problem ?

Thanks for your help.

Fred

like image 357
fauguste Avatar asked Sep 04 '13 17:09

fauguste


People also ask

Does rsyslog use TCP?

A Linux host running rsyslog can send all or individual logs to another rsyslog host over a TCP or UDP connection.

What is rsyslogd used for?

rsyslog is capable of forwarding logs to remote servers. The configuration is relatively simple and makes it possible for Linux admins to centralize log files for archiving and troubleshooting.

Is rsyslog a daemon?

After the rsyslogd daemon is configured to log system messages, the rsyslogd daemon starts with a default command-line argument of -c5 . This option ensures that the rsyslogd daemon starts in a normal mode and is not compatible with an earlier version.

What is rsyslog configuration?

The rsyslog. conf file is the main configuration file for the rsyslogd(8) which logs system messages on *nix systems. This file specifies rules for logging. For special features see the rsyslogd(8) manpage.


1 Answers

I found the solution.

The parameter :

$MaxMessageSize 20k

must be set before network declaration (at the top of rsyslog.conf file) :

$ModLoad imtcp
$InputTCPServerRun 1514
like image 127
fauguste Avatar answered Sep 29 '22 05:09

fauguste