[root@test01 ~]# /usr/sbin/logrotate -vf /etc/logrotate.d/tomcat
reading config file /etc/logrotate.d/tomcat
olddir is now /var/log/tomcat/oldlog
Allocating hash table for state file, size 15360 B
Handling 1 logs
rotating pattern: /usr/local/tomcat8/logs/catalina.out forced from command line (5000 rotations)
olddir is /var/log/tomcat/oldlog, empty log files are not rotated, old logs are removed
considering log /usr/local/tomcat8/logs/catalina.out
log needs rotating
rotating log /usr/local/tomcat8/logs/catalina.out, log->rotateCount is 5000
Converted ' .%Y%m%d-%H点' -> '.%Y%m%d-%H点'
dateext suffix '.20181226-15点'
glob pattern '.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9]点'
glob finding old rotated logs failed
fscreate context set to unconfined_u:object_r:usr_t:s0
renaming /usr/local/tomcat8/logs/catalina.out to /var/log/tomcat/oldlog/catalina.out.20181226-15点
compressing log with: /bin/gzip
set default create context to unconfined_u:object_r:usr_t:s0
set default create context