Browse Docs

๐Ÿ“œ Logrotate

On this page

1logrotate -d /etc/logrotate.d/app   # test a new configuration.
2reading config info for /data/log/app
3Handling 1 logs
4rotating pattern: /data/log/app  after 1 days (10 rotations)
5empty log files are rotated, old logs are removed

Options

Usage: logrotate [OPTION...] <configfile>
  -d, --debug               Don't do anything, just test (implies -v)
  -f, --force               Force file rotation
  -m, --mail=command        Command to send mail (instead of `/bin/mail')
  -s, --state=statefile     Path of state file
  -v, --verbose             Display messages during rotation
Sunday, October 4, 2026 Wednesday, August 16, 2023