From dc63b9323705b866fd95ce0bea71ef32461fd1a5 Mon Sep 17 00:00:00 2001 From: Erwee de Kock Date: Fri, 23 Jul 2021 12:02:03 +0200 Subject: [PATCH] Fix log rotate Log rotate doesnt currently work, once logs have rotated it still points to the old file handler. This will ensure the logs function correctly once it has rotated. --- templates/vault_logrotate.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/vault_logrotate.j2 b/templates/vault_logrotate.j2 index 363bea7a..d3e5c566 100644 --- a/templates/vault_logrotate.j2 +++ b/templates/vault_logrotate.j2 @@ -1,6 +1,7 @@ {{ vault_log_path }}/vault.log { missingok + copytruncate rotate {{ vault_logrotate_freq }} daily dateext