Deploy `/etc/logrotate.d/vault`.
This commit is contained in:
parent
6ed1e9cf90
commit
4455fe6b62
|
@ -0,0 +1,16 @@
|
|||
/opt/vault/logs/audit.log {
|
||||
rotate 30
|
||||
daily
|
||||
# Do not execute rotate if the log file is empty.
|
||||
notifempty
|
||||
missingok
|
||||
compress
|
||||
# Set compress on next rotate cycl to prevent entry loss when performing compression.
|
||||
delaycompress
|
||||
postrotate
|
||||
/usr/bin/pkill -HUP vault
|
||||
endscript
|
||||
extension log
|
||||
dateext
|
||||
dateformat %Y-%m-%d.
|
||||
}
|
|
@ -20,3 +20,9 @@ end
|
|||
mode '644'
|
||||
end
|
||||
end
|
||||
|
||||
remote_file '/etc/logrotate.d/vault' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '644'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue