From f757f4e5e0c0719e8577adac2851274dee8da8a1 Mon Sep 17 00:00:00 2001 From: shayancanonical <99665202+shayancanonical@users.noreply.github.com> Date: Fri, 1 Dec 2023 08:24:35 -0500 Subject: [PATCH] [DPE-3063] Change dateformat in logrotate config to avoid causing filename conflicts after 24hrs of uptime (#363) * Change dateformat in logrotate config to avoid causing filename conflicts after 24hrs of uptime * Remove .log suffix as it already appears in the rotated filename --- templates/logrotate.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/logrotate.j2 b/templates/logrotate.j2 index ec51d21cb..c53e1a471 100644 --- a/templates/logrotate.j2 +++ b/templates/logrotate.j2 @@ -11,7 +11,7 @@ rotate 10800 # Naming of rotated files should be in the format: dateext -dateformat -%V_%H%M +dateformat -%Y%m%d_%H:%M # Settings to prevent misconfigurations and unwanted behaviours ifempty