bec51059cf
In order to prevent the removal of unwanted files, the "find" commands in the post-rotate have been removed, in favor of a tmpwatch call (see Depends-On patch). Depends-On: https://review.openstack.org/641608 Change-Id: Ideaecc7559664684a8665292f77a385a87224582
23 lines
606 B
Plaintext
23 lines
606 B
Plaintext
/var/log/containers/*/*log /var/log/containers/*/*/*log /var/log/containers/*/*err {
|
|
<%= @rotation %>
|
|
rotate <%= @rotate %>
|
|
maxage <%= @purge_after_days %>
|
|
# minsize 1 is required for GDPR compliance, all files in
|
|
# /var/log/containers not managed with logrotate will be purged!
|
|
minsize 1
|
|
# Do not use size as it's not compatible with time-based rotation rules
|
|
# required for GDPR compliance.
|
|
maxsize <%= @maxsize %>
|
|
missingok
|
|
notifempty
|
|
<%- if @copytruncate %>
|
|
copytruncate
|
|
<%- end %>
|
|
<%- if @delaycompress %>
|
|
delaycompress
|
|
<%- end %>
|
|
<%- if @compress %>
|
|
compress
|
|
<%- end %>
|
|
}
|