LinuxQuestions.org
Review your favorite Linux distribution.
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 12-17-2006, 06:16 PM   #1
hank43
Member
 
Registered: Nov 2003
Distribution: centos 4.4
Posts: 94

Rep: Reputation: 15
yum.log & logwatch on centos 4.4


there seems to be a problem with logwatch parsing the yum.log file. from what i've found, it has to do with the date format in the log file. Is there a fix?

I commented out *ApplyUSDate in /etc/log.d/conf/logfiles/yum.conf and now it outputs the entire yum.log (before it showed nothing)

it is a known issue, do not know if there is a solution. someone said to output to syslog instead of yum.log, but i do not see where that option is set.
 
Old 12-17-2006, 08:23 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,367
Blog Entries: 54

Rep: Reputation: 2866Reputation: 2866Reputation: 2866Reputation: 2866Reputation: 2866Reputation: 2866Reputation: 2866Reputation: 2866Reputation: 2866Reputation: 2866Reputation: 2866
there seems to be a problem with logwatch parsing the yum.log file. from what i've found, it has to do with the date format in the log file. Is there a fix?
Most likely. Hacking Logwatch to add a new logfile or service is kinda easy.


I commented out *ApplyUSDate in /etc/log.d/conf/logfiles/yum.conf and now it outputs the entire yum.log (before it showed nothing)
No kidding... Of course it does. If you take away its capability to detect the timerange by timestamps then it will output the whole log...


it is a known issue
It is a "known issue" if Kaybee knows about the issue and has acknowledged the problem is not going to be fixed (soon). Seems unlikely.


If you look at yum.log it uses a timestamp like `/bin/date "+%b %d %H:%M:%S"` which is Syslog format. So instead of using ApplyUSDate check what Apply.* filter the Syslog service gets treated with and replace.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CENTOS 4.4 and YUM metallica1973 Linux - Software 9 11-14-2006 02:51 PM
Problem with yum in CentOS 4.3 combilli Linux - Software 2 10-31-2006 03:39 AM
trying to install YUM on CentOS MrSako Linux - Newbie 5 07-20-2006 08:36 AM
Getting logwatch to include a log GUIPenguin Linux - General 1 03-27-2005 10:38 AM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM


All times are GMT -5. The time now is 07:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration