LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-01-2011, 01:55 PM   #1
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 232

Rep: Reputation: 8
logrotate duplicate log entry problem


having a problem with logrotate. it's complaing about a duplicate log entry but there isn't a duplicate log entry that i can see.



Code:
calhost etc # cat logrotate.conf 
# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/files/logrotate.conf,v 1.3 2008/12/24 20:49:10 dang Exp $
#
# Logrotate default configuration file for Gentoo Linux
#
# See "man logrotate" for details

# rotate log files weekly
weekly
#daily

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# use date as a suffix of the rotated file
dateext

# uncomment this if you want your log files compressed
compress

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

notifempty
nomail
olddir /var/log/old_logs

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

/var/log/btmp {
    missingok
    monthly
    create 0600 root utmp
    rotate 2
}

# system-specific logs may be also be configured here.
/var/log/messages {
    rotate 4
    weekly
    postrotate
         /usr/bin/killall -HUP rsyslogd
    endscript
}
localhost etc # logrotate /etc/logrotate.conf 
error: /etc/logrotate.conf:45 duplicate log entry for /var/log/messages
error: found error in /var/log/messages , skipping
localhost etc #
 
Old 01-01-2011, 02:24 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
# packages can drop log rotation information into this directory
include /etc/logrotate.d

it's probably in there.
 
1 members found this post helpful.
Old 01-01-2011, 02:27 PM   #3
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
look in /etc/logrotate.d directory
there should be a syslog-ng file that may contain info about /var/log/messages rotation
 
1 members found this post helpful.
Old 01-01-2011, 03:01 PM   #4
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 232

Original Poster
Rep: Reputation: 8
yep...it's there, thanks.

Code:
localhost logrotate.d # cat rsyslog
# $Header: /var/cvsroot/gentoo-x86/app-admin/rsyslog/files/3-stable/rsyslog.logrotate,v 1.1 2008/04/09 17:32:56 dev-zero Exp $
#
# Syslog-ng logrotate snippet for Gentoo Linux
#

/var/log/messages /var/log/secure /var/log/maillog /var/log/cron /var/log/spooler /var/log/boot.log {
    sharedscripts
    postrotate
        /etc/init.d/rsyslog reload > /dev/null 2>&1 || true
    endscript
}
Question.... Why is the rsyslog config only for files /var/log/messages /var/log/secure /var/log/maillog /var/log/cron /var/log/spooler /var/log/boot.log? doesn't rsyslog control wtmp, spooler, and basically all the logs?

Also, what would be the diff. between /etc/init.d/rsyslog reload and /usr/bin/killall -HUP rsyslogd
?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php XMLReader duplicate entry... Bug? eco Programming 7 10-23-2010 08:42 PM
New logrotate entry help investmentbnker75 Linux - Server 0 10-16-2008 09:02 PM
duplicate entry finding cmontr Linux - General 1 05-21-2008 11:04 PM
SuSE PATH value with duplicate entry PAOLO_GRS Linux - Software 5 03-06-2006 04:01 AM
Im getting a mysql_error Duplicate entry? blanderson Linux - Newbie 0 10-17-2003 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:44 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
Open Source Consulting | Domain Registration