Home>

Thing I want to do:
I want to check the operation if logrotate is done correctly.

What I looked up:
https://milestone-of-se.nesuke.com/sv-basic/linux-basic/logrotate/
I checked the operation check method on the above site.

background:
I wanted to make the logrotate settings set in the production environment work the same in the verification environment, so I copied the following files in the production environment to the verification environment as they are.
/etc/logrotate.conf
Files under /etc/logrotate.d//etc/cron.daily/logrotate

Question:

logrotate -fv /etc/logrotate.conf

Execute the above command
If i can confirm that the log file is compressed according to the settings of the files under /etc/logrotate.d/ (this depends on the settings) and that cron is running at a later date, is it okay to judge that the operation check is OK? ..