XK0-005 • Practice Test 37
Free XK0-005 practice test — 15 questions with explanations. Set 37. No signup required.
A company runs a web application on a Linux server (Ubuntu 22.04). The application writes log files to /var/log/app/access.log and error.log. Over time, these logs have grown to several gigabytes, causing the /var partition to reach 98% capacity. The administrator decides to implement log rotation using logrotate. They create a configuration file at /etc/logrotate.d/app with the following content:
/var/log/app/*.log { weekly rotate 7 compress delaycompress size 100M missingok
}They then run `logrotate -d /etc/logrotate.d/app` for debugging, which indicates no errors. However, after several days, the logs are not being rotated. Which step should the administrator take to resolve this?