1. Diese Seite verwendet Cookies. Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies. Weitere Informationen

logrotate funktioniert nicht mehr

Dieses Thema im Forum "Archiv" wurde erstellt von Satanos666, 2. November 2011.

  1. Satanos666
    Offline

    Satanos666 Stamm User

    Registriert:
    13. Mai 2009
    Beiträge:
    1.081
    Zustimmungen:
    203
    Punkte für Erfolge:
    63
    Moin Leute,
    ohne das ich was geändert habe funktioniert das logrotate nicht mehr.
    mein var/log ordner ist nach 2-3 Tagen immer voll.
    logmini.sh hab ich bereits erneut installiert und den Futro neugestartet,
    leider gibt es keine Besserung, hat jemand einen tipp für mich?

    hier der Inhalt der logrotate.conf:

    Code:
    # see "man logrotate" for details
    # rotate log files weekly
    weekly
    
    # keep 4 weeks worth of backlogs
    rotate 1
    
    # create new (empty) log files after rotating old ones
    create
    
    # uncomment this if you want your log files compressed
    #compress
    
    # packages drop log rotation information into this directory
    include /etc/logrotate.d
    
    # no packages own wtmp, or btmp -- we'll rotate them here
    /var/log/wtmp {
        missingok
        monthly
        create 0664 root utmp
        rotate 1
    }
    
    /var/log/btmp {
        missingok
        monthly
        create 0660 root utmp
        rotate 1
    }
    
    # system-specific logs may be configured here
    


    hier der Inhalt der rsyslog:

    Code:
    /var/log/syslog
    {
        rotate 1
        size 5M
        missingok
        notifempty
        delaycompress
        compress
        postrotate
            invoke-rc.d rsyslog reload > /dev/null
        endscript
    }
    
    /var/log/mail.info
    /var/log/mail.warn
    /var/log/mail.err
    /var/log/mail.log
    /var/log/daemon.log
    /var/log/kern.log
    /var/log/auth.log
    /var/log/user.log
    /var/log/lpr.log
    /var/log/cron.log
    /var/log/debug
    /var/log/messages
    {
        rotate 1
        size 1M
        missingok
        notifempty
        compress
        delaycompress
        sharedscripts
        postrotate
            invoke-rc.d rsyslog reload > /dev/null
        endscript
    }
    
    /var/log/ipc/CCcam-iusers.log
    /var/log/ipc/CCcam-bcommands.log
    /var/log/ipc/CCcam-restart-*.log
    {
        rotate 1
        size 2M
        missingok
        notifempty
        delaycompress
        compress
        postrotate
            invoke-rc.d rsyslog reload > /dev/null
        endscript
    }
    
    
    

    wenn ich selber logrotate starte:

    Code:
    logrotate -vf /etc/logrotate.conf 

    erhalte ich:

    Code:
    rotating pattern: /var/log/syslog
     forced from command line (1 rotations)
    empty log files are not rotated, old logs are removed
    considering log /var/log/syslog
      log needs rotating
    rotating log /var/log/syslog, log->rotateCount is 1
    dateext suffix '-20111102'
    glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
    previous log /var/log/syslog.1 does not exist
    renaming /var/log/syslog.1.gz to /var/log/syslog.2.gz (rotatecount 1, logstart 1                                                                                                                                                             , i 1),
    old log /var/log/syslog.1.gz does not exist
    renaming /var/log/syslog.0.gz to /var/log/syslog.1.gz (rotatecount 1, logstart 1                                                                                                                                                             , i 0),
    old log /var/log/syslog.0.gz does not exist
    log /var/log/syslog.2.gz doesn't exist -- won't try to dispose of it
    renaming /var/log/syslog to /var/log/syslog.1
    creating new /var/log/syslog mode = 0640 uid = 0 gid = 4
    running postrotate script
    
    rotating pattern: /var/log/mail.info
    /var/log/mail.warn
    /var/log/mail.err
    /var/log/mail.log
    /var/log/daemon.log
    /var/log/kern.log
    /var/log/auth.log
    /var/log/user.log
    /var/log/lpr.log
    /var/log/cron.log
    /var/log/debug
    /var/log/messages
     forced from command line (1 rotations)
    empty log files are not rotated, old logs are removed
    considering log /var/log/mail.info
      log does not need rotating
    considering log /var/log/mail.warn
      log does not need rotating
    considering log /var/log/mail.err
      log does not need rotating
    considering log /var/log/mail.log
      log does not need rotating
    considering log /var/log/daemon.log
      log needs rotating
    considering log /var/log/kern.log
      log needs rotating
    considering log /var/log/auth.log
      log needs rotating
    considering log /var/log/user.log
      log needs rotating
    considering log /var/log/lpr.log
      log does not need rotating
    considering log /var/log/cron.log
      log /var/log/cron.log does not exist -- skipping
    considering log /var/log/debug
      log needs rotating
    considering log /var/log/messages
      log needs rotating
    rotating log /var/log/daemon.log, log->rotateCount is 1
    dateext suffix '-20111102'
    glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
    previous log /var/log/daemon.log.1 does not exist
    renaming /var/log/daemon.log.1.gz to /var/log/daemon.log.2.gz (rotatecount 1, lo                                                                                                                                                             gstart 1, i 1),
    old log /var/log/daemon.log.1.gz does not exist
    renaming /var/log/daemon.log.0.gz to /var/log/daemon.log.1.gz (rotatecount 1, lo                                                                                                                                                             gstart 1, i 0),
    old log /var/log/daemon.log.0.gz does not exist
    log /var/log/daemon.log.2.gz doesn't exist -- won't try to dispose of it
    rotating log /var/log/kern.log, log->rotateCount is 1
    dateext suffix '-20111102'
    glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
    previous log /var/log/kern.log.1 does not exist
    renaming /var/log/kern.log.1.gz to /var/log/kern.log.2.gz (rotatecount 1, logsta                                                                                                                                                             rt 1, i 1),
    old log /var/log/kern.log.1.gz does not exist
    renaming /var/log/kern.log.0.gz to /var/log/kern.log.1.gz (rotatecount 1, logsta                                                                                                                                                             rt 1, i 0),
    old log /var/log/kern.log.0.gz does not exist
    log /var/log/kern.log.2.gz doesn't exist -- won't try to dispose of it
    rotating log /var/log/auth.log, log->rotateCount is 1
    dateext suffix '-20111102'
    glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
    previous log /var/log/auth.log.1 does not exist
    renaming /var/log/auth.log.1.gz to /var/log/auth.log.2.gz (rotatecount 1, logsta                                                                                                                                                             rt 1, i 1),
    old log /var/log/auth.log.1.gz does not exist
    renaming /var/log/auth.log.0.gz to /var/log/auth.log.1.gz (rotatecount 1, logsta                                                                                                                                                             rt 1, i 0),
    old log /var/log/auth.log.0.gz does not exist
    log /var/log/auth.log.2.gz doesn't exist -- won't try to dispose of it
    rotating log /var/log/user.log, log->rotateCount is 1
    dateext suffix '-20111102'
    glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
    previous log /var/log/user.log.1 does not exist
    renaming /var/log/user.log.1.gz to /var/log/user.log.2.gz (rotatecount 1, logsta                                                                                                                                                             rt 1, i 1),
    old log /var/log/user.log.1.gz does not exist
    renaming /var/log/user.log.0.gz to /var/log/user.log.1.gz (rotatecount 1, logsta                                                                                                                                                             rt 1, i 0),
    old log /var/log/user.log.0.gz does not exist
    log /var/log/user.log.2.gz doesn't exist -- won't try to dispose of it
    rotating log /var/log/debug, log->rotateCount is 1
    dateext suffix '-20111102'
    glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
    previous log /var/log/debug.1 does not exist
    renaming /var/log/debug.1.gz to /var/log/debug.2.gz (rotatecount 1, logstart 1,                                                                                                                                                              i 1),
    old log /var/log/debug.1.gz does not exist
    renaming /var/log/debug.0.gz to /var/log/debug.1.gz (rotatecount 1, logstart 1,                                                                                                                                                              i 0),
    old log /var/log/debug.0.gz does not exist
    log /var/log/debug.2.gz doesn't exist -- won't try to dispose of it
    rotating log /var/log/messages, log->rotateCount is 1
    dateext suffix '-20111102'
    glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
    previous log /var/log/messages.1 does not exist
    renaming /var/log/messages.1.gz to /var/log/messages.2.gz (rotatecount 1, logsta                                                                                                                                                             rt 1, i 1),
    old log /var/log/messages.1.gz does not exist
    renaming /var/log/messages.0.gz to /var/log/messages.1.gz (rotatecount 1, logsta                                                                                                                                                             rt 1, i 0),
    old log /var/log/messages.0.gz does not exist
    log /var/log/messages.2.gz doesn't exist -- won't try to dispose of it
    renaming /var/log/daemon.log to /var/log/daemon.log.1
    creating new /var/log/daemon.log mode = 0640 uid = 0 gid = 4
    renaming /var/log/kern.log to /var/log/kern.log.1
    creating new /var/log/kern.log mode = 0640 uid = 0 gid = 4
    renaming /var/log/auth.log to /var/log/auth.log.1
    creating new /var/log/auth.log mode = 0640 uid = 0 gid = 4
    renaming /var/log/user.log to /var/log/user.log.1
    creating new /var/log/user.log mode = 0640 uid = 0 gid = 4
    renaming /var/log/debug to /var/log/debug.1
    creating new /var/log/debug mode = 0640 uid = 0 gid = 4
    renaming /var/log/messages to /var/log/messages.1
    creating new /var/log/messages mode = 0640 uid = 0 gid = 4
    running postrotate script
    
    rotating pattern: /var/log/ipc/CCcam-iusers.log
    /var/log/ipc/CCcam-bcommands.log
    /var/log/ipc/CCcam-restart-*.log
     forced from command line (1 rotations)
    empty log files are not rotated, old logs are removed
    considering log /var/log/ipc/CCcam-iusers.log
      log needs rotating
    considering log /var/log/ipc/CCcam-bcommands.log
      log needs rotating
    considering log /var/log/ipc/CCcam-restart-20111026_0159.log
      log does not need rotating
    considering log /var/log/ipc/CCcam-restart-20111028_0018.log
      log does not need rotating
    considering log /var/log/ipc/CCcam-restart-20111030_0325.log
      log does not need rotating
    rotating log /var/log/ipc/CCcam-iusers.log, log->rotateCount is 1
    dateext suffix '-20111102'
    glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
    previous log /var/log/ipc/CCcam-iusers.log.1 does not exist
    renaming /var/log/ipc/CCcam-iusers.log.1.gz to /var/log/ipc/CCcam-iusers.log.2.g                                                                                                                                                             z (rotatecount 1, logstart 1, i 1),
    old log /var/log/ipc/CCcam-iusers.log.1.gz does not exist
    renaming /var/log/ipc/CCcam-iusers.log.0.gz to /var/log/ipc/CCcam-iusers.log.1.g                                                                                                                                                             z (rotatecount 1, logstart 1, i 0),
    old log /var/log/ipc/CCcam-iusers.log.0.gz does not exist
    log /var/log/ipc/CCcam-iusers.log.2.gz doesn't exist -- won't try to dispose of                                                                                                                                                              it
    renaming /var/log/ipc/CCcam-iusers.log to /var/log/ipc/CCcam-iusers.log.1
    creating new /var/log/ipc/CCcam-iusers.log mode = 0640 uid = 0 gid = 4
    running postrotate script
    rotating log /var/log/ipc/CCcam-bcommands.log, log->rotateCount is 1
    dateext suffix '-20111102'
    glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
    previous log /var/log/ipc/CCcam-bcommands.log.1 does not exist
    renaming /var/log/ipc/CCcam-bcommands.log.1.gz to /var/log/ipc/CCcam-bcommands.l                                                                                                                                                             og.2.gz (rotatecount 1, logstart 1, i 1),
    old log /var/log/ipc/CCcam-bcommands.log.1.gz does not exist
    renaming /var/log/ipc/CCcam-bcommands.log.0.gz to /var/log/ipc/CCcam-bcommands.l                                                                                                                                                             og.1.gz (rotatecount 1, logstart 1, i 0),
    old log /var/log/ipc/CCcam-bcommands.log.0.gz does not exist
    log /var/log/ipc/CCcam-bcommands.log.2.gz doesn't exist -- won't try to dispose                                                                                                                                                              of it
    renaming /var/log/ipc/CCcam-bcommands.log to /var/log/ipc/CCcam-bcommands.log.1
    creating new /var/log/ipc/CCcam-bcommands.log mode = 0640 uid = 0 gid = 4
    running postrotate script
    running postrotate script
    running postrotate script
    running postrotate script
    
    rotating pattern: /var/log/wtmp  forced from command line (1 rotations)
    empty log files are rotated, old logs are removed
    considering log /var/log/wtmp
      log needs rotating
    rotating log /var/log/wtmp, log->rotateCount is 1
    dateext suffix '-20111102'
    glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
    renaming /var/log/wtmp.1 to /var/log/wtmp.2 (rotatecount 1, logstart 1, i 1),
    old log /var/log/wtmp.1 does not exist
    renaming /var/log/wtmp.0 to /var/log/wtmp.1 (rotatecount 1, logstart 1, i 0),
    old log /var/log/wtmp.0 does not exist
    log /var/log/wtmp.2 doesn't exist -- won't try to dispose of it
    renaming /var/log/wtmp to /var/log/wtmp.1
    creating new /var/log/wtmp mode = 0664 uid = 0 gid = 43
    
    rotating pattern: /var/log/btmp  forced from command line (1 rotations)
    empty log files are rotated, old logs are removed
    considering log /var/log/btmp
      log needs rotating
    rotating log /var/log/btmp, log->rotateCount is 1
    dateext suffix '-20111102'
    glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
    renaming /var/log/btmp.1 to /var/log/btmp.2 (rotatecount 1, logstart 1, i 1),
    old log /var/log/btmp.1 does not exist
    renaming /var/log/btmp.0 to /var/log/btmp.1 (rotatecount 1, logstart 1, i 0),
    old log /var/log/btmp.0 does not exist
    log /var/log/btmp.2 doesn't exist -- won't try to dispose of it
    renaming /var/log/btmp to /var/log/btmp.1
    creating new /var/log/btmp mode = 0660 uid = 0 gid = 43
    
    
    
     
    Zuletzt bearbeitet: 2. November 2011
    #1

Diese Seite empfehlen