Skip to content

Instantly share code, notes, and snippets.

@afquinterog
Last active January 16, 2020 23:07
Show Gist options
  • Save afquinterog/d0924547993cc2ff7dd5e294b94103ff to your computer and use it in GitHub Desktop.
Save afquinterog/d0924547993cc2ff7dd5e294b94103ff to your computer and use it in GitHub Desktop.
Vault logrotation configuration
/var/log/vault_audit.log {
daily
create 0600 vault vault
missingok
dateext
rotate 7
size=10M
notifempty
postrotate
if invoke-rc.d vault status > /dev/null 2>&1; then \
invoke-rc.d vault restart > /dev/null 2>&1; \
fi;
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment