-
Committer:
Ian Booth
-
Date:
2013-03-21 07:05:16 UTC
-
mfrom:
(1010.4.5 rsyslog-conf)
-
Revision ID:
ian.booth@canonical.com-20130321070516-7s3vflbt5j3rhnvj
Add rsyslog config
This branch generates rsyslog config files so that messages from all nodes
are sent via UDP to the state server node and logged to an all-machines.log file
The cloud init script is altered to generate the rsyslog conf files. Currently
only machine-X.log files are forwarded to the state server. When a new service is
deployed, unit-X.log files are generated but these are not currently forwarded. This
may be addressed in a subsequent branch.
The various forwarded messages from each node are preprended from the node name
like so:
juju-hpcloudx-machine-0 JUJU:jujud:machine: 2013/03/20 03:52:58 NOTICE: cmd/jujud: agent starting
The solution was complicated by the fact that messages from the remote node contain a leading
space. So separate output templates were required to ensure a consistent log file.
R=dimitern, jameinel
CC=
https://codereview.appspot.com/7756045