Skip to content

Instantly share code, notes, and snippets.

@tbeyer567
Created January 10, 2022 21:24
Show Gist options
  • Save tbeyer567/d671132ba3e32920a80d878138bfc3e8 to your computer and use it in GitHub Desktop.
Save tbeyer567/d671132ba3e32920a80d878138bfc3e8 to your computer and use it in GitHub Desktop.
/var/log/vault/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
# If you do not use systemctl. you can send SIGHUP to vault's process to achieve same goal.
/usr/bin/systemctl reload vault 2> /dev/null || true
endscript
extension log
dateext
dateformat %Y-%m-%d.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment