LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-19-2004, 10:10 AM   #1
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 544

Rep: Reputation: 31
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.
 
Old 07-19-2004, 10:20 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

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

Hope this helps.
 
Old 07-19-2004, 10:22 AM   #3
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 544

Original Poster
Rep: Reputation: 31
um, nevermind.

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
logrotate error - last rotated in the future ocgltd Fedora 1 10-02-2005 08:07 PM
logrotate error @ngelot Linux - Newbie 1 09-02-2005 08:05 PM
Logrotate Help! MaverickApollo Linux - Software 3 02-19-2004 12:09 PM
error message when run MRTG: SNMP error zhgalaxy Linux - Newbie 0 02-18-2004 12:08 PM
Error in Logrotate.status file tomdlam Linux - General 0 10-17-2002 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration