Skip to content

Commit 1704b4e

Browse files
[DPE-3063] Update logrotate dateformat to tolerate more than 24hrs of uptime (#169)
## Issue We are using `-%V_%H%M` as the dateformat for logrotate - this causes filename conflicts after a day of uptime due to file name conflicts. ## Solution Use `-%Y%m%d_%H:%M` as the dateformat (for consistency with pgbouncer)
1 parent 3bc05b7 commit 1704b4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/logrotate.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rotate 10800
1111

1212
# Naming of rotated files should be in the format:
1313
dateext
14-
dateformat -%V_%H%M
14+
dateformat -%Y%m%d_%H:%M
1515

1616
# Settings to prevent misconfigurations and unwanted behaviours
1717
ifempty

0 commit comments

Comments
 (0)