LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   yum.log & logwatch on centos 4.4 (http://www.linuxquestions.org/questions/linux-software-2/yum-log-and-logwatch-on-centos-4-4-a-511432/)

hank43 12-17-2006 07:16 PM

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.

unSpawn 12-17-2006 09:23 PM

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.


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