# /etc/logrotate.d/applog/opt/logs/*.log/opt/logs/*/*.log/opt/logs/*/*/*.log{size20M
rotate3missingok
notifempty
}# 手工执行sudologrotate/etc/logrotate.d/applog--force--verbose
# 常用参数# Truncate the original log file to zero size in place after creating a copy, instead of moving the old log file and optionally creating a new one.copytruncate