From 3ac4529b84438153b101a63ead52d9a24f75b2fa Mon Sep 17 00:00:00 2001 From: Eoghan Gaffney Date: Fri, 12 May 2023 16:21:01 +0100 Subject: [PATCH] Add nginx logs for docker-registry host to rsyslog Bug: T322579 Change-Id: I4e73f017e977ba8c3f7c73a8098bba65b40f7faf --- modules/docker/manifests/registry.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/docker/manifests/registry.pp b/modules/docker/manifests/registry.pp index 24b8cff1340..03ef5b86458 100644 --- a/modules/docker/manifests/registry.pp +++ b/modules/docker/manifests/registry.pp @@ -77,4 +77,12 @@ '/etc/docker/registry/config.yml' ], } + + rsyslog::input::file { 'registry-nginx-error': + path => '/var/log/nginx/error.log', + } + + rsyslog::input::file { 'registry-nginx-access': + path => '/var/log/nginx/access.log', + } }