Anzeige:
Ergebnis 1 bis 2 von 2

Thema: Logrotate rotiert nicht sondern

  1. #1
    Registrierter Benutzer
    Registriert seit
    Dec 2005
    Beiträge
    88

    Logrotate rotiert nicht. Behauptet es gäbe kein Grund zu rotieren

    Hallo ich versuche gerade Logrotete zu etablieren. Dabei teste ich es mit dem Befehl

    Code:
    /usr/sbin/logrotate -dv /etc/logrotate.d/mysql
    Dabei kommt es zu folgender Meldung:
    Code:
     /usr/sbin/logrotate -dv /etc/logrotate.d/mysql 
    reading config file /etc/logrotate.d/mysql
    reading config info for /var/log/mysql/mysql-error.err 
    reading config info for /var/log/mysql/query.log 
    
    Handling 2 logs
    
    rotating pattern: /var/log/mysql/mysql-error.err  after 1 days (7 rotations)
    empty log files are not rotated, old logs are removed
    considering log /var/log/mysql/mysql-error.err
      log does not need rotating
    
    rotating pattern: /var/log/mysql/query.log  after 1 days (52 rotations)
    empty log files are not rotated, old logs are removed
    considering log /var/log/mysql/query.log
      log does not need rotating
    Was ich nicht ganz verstehe, warum er die query.log nicht rotiert. Diese ist 12 MB groß. Beide Dateien sind nicht leer.
    Konfiguration /etc/logrotate.d/mysql
    Code:
    /var/log/mysql/mysql-error.err {
            # create 600 mysql mysql
            notifempty
            daily
            rotate 7
            missingok
            compress
    }
    /var/log/mysql/query.log {
            notifempty
            size = 10M
             rotate 52
            missingok
            compress
    }
    VG niesel
    Geändert von nieselfriem (19.07.13 um 10:23 Uhr)

  2. #2
    Freelancer Avatar von TheDarkRose
    Registriert seit
    Jun 2009
    Ort
    Oberalm
    Beiträge
    669
    Na weils noch nicht nötig ist (Datei zu jung)? Versuch es mal mit -f
    foo bar

Ähnliche Themen

  1. logrotate will nicht rotieren
    Von kelups im Forum Anwendungen Allgemein, Software
    Antworten: 15
    Letzter Beitrag: 22.02.10, 16:17
  2. logrotate rotiert nicht
    Von tozu im Forum Linux als Server
    Antworten: 2
    Letzter Beitrag: 19.11.08, 11:21
  3. Debian und die logrotate Konfiguration?
    Von Thovan im Forum System installieren und konfigurieren
    Antworten: 1
    Letzter Beitrag: 04.08.05, 19:24
  4. logrotate für mysql will nicht
    Von sutterp im Forum Linux als Server
    Antworten: 2
    Letzter Beitrag: 13.10.02, 02:06
  5. Logrotate
    Von ace23 im Forum Linux Allgemein
    Antworten: 0
    Letzter Beitrag: 03.08.02, 17:10

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •