From 2f40cded4a1d9e34d80cf1939662fe7626905851 Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Sun, 16 Dec 2018 14:50:34 -0500 Subject: 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 --- src/infra.gentoo.org/rsync-node/rsyncd.conf | 5 +++-- 1 file 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] -- cgit v1.2.3-65-gdbad