logrotate - Log File Rotation Tool
Administer log file rotation with configuration, compression, and post-rotation scripts
Tags
Updated: 2026-03-21Capabilities
Typical Inputs
Typical Outputs
What this skill does
- validate config
- test configuration
- force rotation
- check status
- inspect state file
- enable timer
- run dry-run
Inputs
- logrotate configuration file
- log file paths
- state file
- system scheduler
Outputs
- rotated log files
- compressed log files
- updated state file
Requirements
- root permissions
- systemd or cron
- gzip
