logrotate异常排查

[root@dev240 logrotate.d]# /usr/sbin/logrotate -v /etc/logrotate.conf
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file chrony
reading config file cups
reading config file glusterfs
reading config file httpd
reading config file iptraf-ng
reading config file iscsiuiolog
reading config file nginxproxylog
reading config file numad
reading config file ppp
reading config file psacct
reading config file samba
olddir is now /var/log/samba/old
reading config file syslog
reading config file td-agent
reading config file wpa_supplicant
reading config file yum

Handling 18 logs

rotating pattern: /var/log/chrony/*.log  weekly (4 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/chrony/*.log
  log /var/log/chrony/*.log does not exist -- skipping
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/cups/*_log  weekly (4 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/cups/access_log
  log does not need rotating
considering log /var/log/cups/error_log
  log does not need rotating
considering log /var/log/cups/page_log
  log does not need rotating

rotating pattern: /var/log/glusterfs/*.log  weekly (52 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/glusterfs/*.log
  log /var/log/glusterfs/*.log does not exist -- skipping
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/glusterfs/bricks/*.log  weekly (52 rotations)
empty log files are not rotated, old logs are removed
No logs found. Rotation not needed.

rotating pattern: /var/log/httpd/*log  weekly (4 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/httpd/*log
  log /var/log/httpd/*log does not exist -- skipping
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/iptraf-ng/*.log  weekly (4 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/iptraf-ng/*.log
  log /var/log/iptraf-ng/*.log does not exist -- skipping

rotating pattern: /var/log/iscsiuio.log  weekly (4 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/iscsiuio.log
  log /var/log/iscsiuio.log does not exist -- skipping
not running postrotate script, since no logs were rotated

rotating pattern: /usr/local/fountain/3rdparty/nginx/logs/*log  1048576 bytes (5 rotations)
empty log files are not rotated, old logs are removed
considering log /usr/local/fountain/3rdparty/nginx/logs/error.log
  log needs rotating
considering log /usr/local/fountain/3rdparty/nginx/logs/tcp-access.log
  log needs rotating
rotating log /usr/local/fountain/3rdparty/nginx/logs/error.log, log->rotateCount is 5
dateext suffix '-20180409'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
destination /usr/local/fountain/3rdparty/nginx/logs/error.log-20180409 already exists, skipping rotation
rotating log /usr/local/fountain/3rdparty/nginx/logs/tcp-access.log, log->rotateCount is 5
dateext suffix '-20180409'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
glob finding old rotated logs failed

rotating pattern: /var/log/numad.log  1048576 bytes (5 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/numad.log
  log /var/log/numad.log does not exist -- skipping

rotating pattern: /var/log/ppp/connect-errors  after 1 days (5 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/ppp/connect-errors
  log /var/log/ppp/connect-errors does not exist -- skipping

rotating pattern: /var/account/pacct  after 1 days (31 rotations)
empty log files are not rotated, old logs are removed
considering log /var/account/pacct
  log does not need rotating

rotating pattern: /var/log/samba/*  weekly (4 rotations)
olddir is /var/log/samba/old, empty log files are not rotated, old logs are removed
No logs found. Rotation not needed.

rotating pattern: /var/log/cron
/var/log/maillog
/var/log/messages
/var/log/secure
/var/log/spooler
 weekly (4 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/cron
  log does not need rotating
considering log /var/log/maillog
  log does not need rotating
considering log /var/log/messages
  log does not need rotating
considering log /var/log/secure
  log does not need rotating
considering log /var/log/spooler
  log does not need rotating
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/td-agent/td-agent.log  after 1 days (30 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/td-agent/td-agent.log
  log does not need rotating
not running postrotate script, since no logs were rotated

rotating pattern: /var/log/wpa_supplicant.log  30720 bytes (4 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/wpa_supplicant.log
  log does not need rotating

rotating pattern: /var/log/yum.log  yearly (4 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/yum.log
  log does not need rotating

rotating pattern: /var/log/wtmp  monthly (1 rotations)
empty log files are rotated, only log files >= 1048576 bytes are rotated, old logs are removed
considering log /var/log/wtmp
  log does not need rotating

rotating pattern: /var/log/btmp  monthly (1 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/btmp
  log does not need rotating

 

你可能感兴趣的:(logrotate异常排查)