Centralised Logging Configuration

Centralised Logging Configuration#

The log system in Carbonio CE is rsyslog, which supports a centralised setup: in other words, all log files produced by Carbonio CE can be sent to a unique host server (we call it “Log Server”), that is appropriately configured to receive log files, which is particularly useful in a Multi-Server installation.

In the instructions below, we give the Log Server the FQDN logsrv.example.com.

Centralised Logging Setup

On logsrv.example.com, open file /etc/rsyslog.conf, find the following lines, and uncomment them (i.e., remove the # character at the beginning of the line).

$ModLoad imudp
$UDPServerRun 514

$ModLoad imtcp
$TCPServerRun 514

Then, restart the rsyslog service.

# systemctl restart rsyslog

Finally, specify the host server that will receive logs: we already called it logsrv.example.com, so use this hostname.

zextras$ carbonio prov mcf zimbraLogHostname logsrv.example.com


Since zimbraLogHostname is a global attribute, this command must be run only once on one node.

Other Nodes Setup

Once the Log Server node has properly been initialised, on all other nodes, execute

# /opt/zextras/libexec/zmsyslogsetup  && service rsyslog restart