From 4ac79ba18dbddbd35b89e742511195be7099f304 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 20 Oct 2024 12:06:55 -0500 Subject: [PATCH] minio-backups: No syslog for nginx access logs MinIO/S3 clients generate a _lot_ of requests. It's also not particularly useful to have these stored in Loki anyway. As such, we'll stop routing them to syslog/journal. Having access logs is somewhat useful for troubleshooting, but really for only live requests (i.e. what's happening right now). We therefore keep the access logs around in a file, but only for one day, so as not to fill up the filesystem with logs we'll never see. --- group_vars/minio-backups.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/group_vars/minio-backups.yml b/group_vars/minio-backups.yml index 1bee2a7..75199f0 100644 --- a/group_vars/minio-backups.yml +++ b/group_vars/minio-backups.yml @@ -30,4 +30,5 @@ minio_cert_acme_server: https://ca.pyrocufflink.blue/acme/acme/directory nginx_ssl_certificate: /etc/letsencrypt/live/{{ minio_cert_main_domain }}/fullchain.pem nginx_ssl_certificate_key: /etc/letsencrypt/live/{{ minio_cert_main_domain }}/privkey.pem nginx_error_log_file: false -nginx_access_log_file: false +nginx_access_log_syslog: false +nginx_keep_num_logs: 1