Created
January 31, 2022 16:30
-
-
Save tbeyer567/143cfd6170601c6d30068ea678b1fc8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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