Security

An administrator is writing a logrotate configuration for /var/log/app/*.log. The logs must be rotated once per week, and exactly eight rotated copies must be kept before the oldest is removed. Which two directives meet these requirements? (Choose two.)

Choose 2 answers

Show the answer

Correct answersA. rotate 8D. weekly

weekly sets the time interval for rotation, and rotate 8 keeps eight rotated logs before deleting the oldest. compress only gzips rotated files and does not control how many are retained. size 8M triggers rotation by file size, not weekly.