我如何监控log旋转机在Ubuntu中所做的事情?日志轮转的活动能被监视吗?
发布于 2013-06-24 16:04:37
cat /var/lib/logrotate/status 若要验证某个特定日志是否确实是旋转的,并检查其旋转的最后日期和时间,请检查/var/lib/log转速/status文件。这是一个格式整齐的文件,它包含日志文件名和上次旋转日志文件的日期。
摘自:
发布于 2010-10-09 15:36:01
您可以尝试在调试或详细模式下运行日志旋转:
-d Turns on debug mode and implies -v. In debug mode, no changes
will be made to the logs or to the logrotate state file.
-v, --verbose
Display messages during rotation.发布于 2015-04-14 14:40:06
在Suse Linux发行版中,如下所示:
cat /var/lib/logrotate.statushttps://serverfault.com/questions/189320
复制相似问题