Archiv > General

Logrotate Scheint Nicht Zu Funktionieren

(1/1)

skippy:
Hallo zusammen,

habe gerade mal bei mir geschaut, ob das logrotate auf die /var/log/messages klappt. Aber da gibt es nur eine Datei, die seit dem 19.8. fleißig gefüllt wird. Da rotiert nüscht.


--- Code: ---MLD> ls -lh /var/log/messages
-rw-r--r--    1 root     root        2.9M Sep  4 18:46 /var/log/messages
MLD> logrotate -d /etc/logrotate.conf
Ignoring /etc/logrotate.conf because of bad file mode.

Handling 0 logs
MLD> logrotate -d /etc/logrotate.d/messages
Ignoring /etc/logrotate.d/messages because of bad file mode.

--- End code ---

und hier dier Inhalt aus der /etc/logrotate.d/messages:


--- Code: ---/var/log/messages
{
        rotate 4
        daily
        size=2000k
        missingok
        notifempty
        compress
        delaycompress
        sharedscripts
}

--- End code ---

Läuft das bei euch bzw. hat jemand eine Idee, warum es bei mir nicht funzt?

Viele Grüße skippy

Christian:

--- Quote --- Hallo zusammen,

habe gerade mal bei mir geschaut, ob das logrotate auf die /var/log/messages klappt. Aber da gibt es nur eine Datei, die seit dem 19.8. fleißig gefüllt wird. Da rotiert nüscht.


--- Code: ---MLD> ls -lh /var/log/messages
-rw-r--r--    1 root     root        2.9M Sep  4 18:46 /var/log/messages
MLD> logrotate -d /etc/logrotate.conf
Ignoring /etc/logrotate.conf because of bad file mode.

Handling 0 logs
MLD> logrotate -d /etc/logrotate.d/messages
Ignoring /etc/logrotate.d/messages because of bad file mode.

--- End code ---

und hier dier Inhalt aus der /etc/logrotate.d/messages:


--- Code: ---/var/log/messages
{
        rotate 4
        daily
        size=2000k
        missingok
        notifempty
        compress
        delaycompress
        sharedscripts
}

--- End code ---

Läuft das bei euch bzw. hat jemand eine Idee, warum es bei mir nicht funzt?

Viele Grüße skippy
--- End quote ---

--- Code: ---# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# 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

# system-specific logs may be configured here

--- End code ---

Navigation

[0] Message Index

Go to full version