[1] Archiv / MLD 3.x / General / Logrotate Scheint Nicht Zu Funktionieren
 

Offline skippy

  • MLD-Tester
  • Expert Member
  • ******
  • Posts: 2279
    • View Profile
Logrotate Scheint Nicht Zu Funktionieren
« on: September 04, 2013, 18:51:49 »
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: [Select]
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.

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

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

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

Viele Grüße skippy
meine MLDs (show / hide)

Offline Christian

  • MLD-Developer
  • Expert Member
  • ******
  • Posts: 1531
    • View Profile
    • http://www.minidvblinux.de
Logrotate Scheint Nicht Zu Funktionieren
« Reply #1 on: September 04, 2013, 21:24:19 »
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: [Select]
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.

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

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

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

Viele Grüße skippy
Code: [Select]
# 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
__________________________________________

"...ich schreibe 80% meiner Beiträge aus dem Kopf ... bitte nicht schlagen wenn mal ein Path nicht passt :) ..."

MFG Christian

Nokia Sat DBox2 + Multicam

Hardware VDR: ASUS E35M1-I Deluxe, 4GB RAM, ATI 6XXX onboard, TT S2-6400 FF, Samsung 500GB 2,5"


[1] Archiv / MLD 3.x / General / Logrotate Scheint Nicht Zu Funktionieren
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.