Deploy `/etc/logrotate.d/vault`.

This commit is contained in:
Kazuhiro MUSASHI 2022-07-02 20:39:31 +09:00 committed by Gitea
parent 6ed1e9cf90
commit 4455fe6b62
2 changed files with 22 additions and 0 deletions

View File

@ -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.
}

View File

@ -20,3 +20,9 @@ end
mode '644' mode '644'
end end
end end
remote_file '/etc/logrotate.d/vault' do
owner 'root'
group 'root'
mode '644'
end