zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    JZOJ 4.1 B组 删数
    JZOJ 4.1 B组 无限序列
    JZOJ 4.1 C组 【GDOI2005】电路稳定性
    JZOJ 4.1 C组【GDOI2005】积木分发
    SSL 1614——医院设置[最短路]
    SSL 1761——城市问题[最短路]
    SSL 1760——商店选址问题(最短路)
    SSL 1613——最短路径问题(最短路)
    JZOJ 3.25 1422——【汕头市选2012初中组】步行(walk)
    JZOJ 3.25 1421【汕头市选2012初中组】数数(count)
  • 原文地址:https://www.cnblogs.com/felixzh/p/8758470.html
Copyright © 2011-2022 走看看