diff options
author | Alec Warner <antarus@gentoo.org> | 2018-12-16 14:50:34 -0500 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2018-12-16 14:50:34 -0500 |
commit | 2f40cded4a1d9e34d80cf1939662fe7626905851 (patch) | |
tree | 133a6edd31591173ff23b2c633f373703a3bc882 | |
parent | Attempt to fit a node on a 1.7GB g1-small on GCP. (diff) | |
download | antarus-2f40cded4a1d9e34d80cf1939662fe7626905851.tar.gz antarus-2f40cded4a1d9e34d80cf1939662fe7626905851.tar.bz2 antarus-2f40cded4a1d9e34d80cf1939662fe7626905851.zip |
Support logging to stackdriver.
Currently the "logger -t" lines in wrap_rsync.sh do get caught by the
logs collector, but the rsync logs do not because /var/log/rsync.log
is not configured to be collected by default.
Configure rsync to log to /var/log/syslog, which is automatically parsed
and streamed to stackdriver.
Signed-off-by: Alec Warner <antarus@gentoo.org>
-rw-r--r-- | src/infra.gentoo.org/rsync-node/rsyncd.conf | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/infra.gentoo.org/rsync-node/rsyncd.conf b/src/infra.gentoo.org/rsync-node/rsyncd.conf index 0ff0a54..8cc56be 100644 --- a/src/infra.gentoo.org/rsync-node/rsyncd.conf +++ b/src/infra.gentoo.org/rsync-node/rsyncd.conf @@ -7,10 +7,11 @@ use chroot = no max connections = 0 motd file = ./rsyncd.motd -log file = /var/log/rsync.log +# On GCP, the default log collector only collects syslog, so just toss logs in there. +log file = /var/log/syslog transfer logging = yes log format = %t %a %m %f %b -syslog facility = local3 +syslog facility = daemon timeout = 300 [gentoo-portage] |