Skip to content

Commit

Permalink
[DPE-3063] Change dateformat in logrotate config to avoid causing fil…
Browse files Browse the repository at this point in the history
…ename 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
  • Loading branch information
shayancanonical authored Dec 1, 2023
1 parent ca65034 commit f757f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/logrotate.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f757f4e

Please sign in to comment.