LINUXOR.SK ... open source notes ...

Vault - logrotate.conf (rotation policy)

category: solutionz · date: 2024-12-31 · updated: 2026-10-02 · author: LALA

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.

ItemValue
Path on the host/etc/logrotate.conf
Deployed onevery server
Run by/etc/cron.daily/logrotate

The file

nginx
#------------------------------------------------------------------------------
# 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
← solutionz