Skip to content

Instantly share code, notes, and snippets.

@tbeyer567
Created January 31, 2022 16:30
Show Gist options
  • Save tbeyer567/143cfd6170601c6d30068ea678b1fc8b to your computer and use it in GitHub Desktop.
Save tbeyer567/143cfd6170601c6d30068ea678b1fc8b to your computer and use it in GitHub Desktop.
/var/log/vault/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