LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   logrotate won't run - gives error (https://www.linuxquestions.org/questions/linux-general-1/logrotate-wont-run-gives-error-206936/)

Avatar 07-19-2004 10:10 AM

logrotate won't run - gives error
 
hi there, this is in regards to my server that has a 2.4.18-8 (Mandrake) kernel, no GUI.

Seeing as how my log files were 5 GB in size, I determined that cron wasn't running logrotate. So when I ran it manually, I got the following error.

error: syslog:17 duplicate log entry for /var/log/messages

I have no idea what this means. Here's my logrotate.conf:

Code:

# 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

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/lastlog {
    monthly
    rotate 1
}

# system-specific logs may be configured here

I dont see anything duplicated.

Where do i start? thanks. :)

druuna 07-19-2004 10:20 AM

Check /etc/logrotate.d/, there should be some individual files there. Maybe one of those has a duplicate entry.

Hope this helps.

Avatar 07-19-2004 10:22 AM

um, nevermind. :o

I sure pondered this question for a long time, then right after posting, I rememered editing a file for a log parsing program. I did in fact made one entry twice.

The file in question was "/etc/logrotate.d/syslog" hence the error. (might have jogged my memory had the error contained the full path name instead of just the file name).

Oops. :o


All times are GMT -5. The time now is 06:12 AM.