Vault - logrotate.conf (rotation policy)
Vault Solution · Config document · referenced from Audit logging and log shipping
The main logrotate configuration of every server. It states the rotation policy of the whole Solution once: daily, fourteen files, compressed, with the date in the name.
| Item | Value |
|---|---|
| Path on the host | /etc/logrotate.conf |
| Deployed on | every server |
| Run by | /etc/cron.daily/logrotate |
The file
#------------------------------------------------------------------------------ # File: logrotate.conf # Description: Main configuration of logrotate # Author: admin01 # Date: 2023 #------------------------------------------------------------------------------ # Daily rotation of the log files daily # Keeping last 14 days of log files rotate 14 # Create new (empty) log files after rotating old ones create 0640 # Use date as a suffix of the rotated file dateext # Compression of the rotated log files compress delaycompress # Include log rotation information for SW packages include /etc/logrotate.d