Created
January 10, 2022 21:24
-
-
Save tbeyer567/d671132ba3e32920a80d878138bfc3e8 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/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