Logwatch Spamassassin

"Klaipedaville on Google" <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <E44802649E3B4AACA0686F22E297AA29@Computer>
Hello there,

I have a quick question / request for clarification. I’ll try to be concise.

Logwatch 7.4.0 release 11/08/13 on Debian Wheezy (3.2.57) 

I simply set up my custom path as my spamassassin runs daemonized and created my custom service in order to use my custom path. This is all in accordance with clearly described and explained documentation. I have it working OK in general. Now the script itself in /usr/share/logwatch/scripts/services/spamassassin  It produces everything contained in my spamd.log file when logwatch –service spamassassin is run. It does not react to –range today or yesterday, etc., it does not react to –range option at all. 

Now the question is it supposed to be like that and generate it all "in total" all the time? I mean to say that –range is absolutely not applicable for this service at all is it?

I am fine to look at "totals" all the time but are there any ways to separate it by –range (yesterday, today) aren’t there?

These are the modifications I did in /usr/share/logwatch/scripts/services/spamassassin in order to suit my needs. I simply commented some parts not to get thousands of meaningless (for mails) lines in my daily logs. These two parts found almost at the end of the script and my guess is that the script would be just perfect without those and if you only could get the –range working correctly. 
My time filter works OK as all the other services match it without any problems or issues. In fact, am I perhaps on the "wrong page" here and spamassassin in logwatch has to have its own time filter somewhere? 

#if (keys %Child) {
#print "\nChild-related errors\n";
#   foreach $line (sort {$Child{$b}<=>$Child{$a} } keys %Child) {
#print "   $line: $Child{$line} Time(s)\n";
#   }
#}

# if (keys %OtherList) {
#   print "\n**Unmatched Entries**\n";
#   foreach $line (sort {$OtherList{$b}<=>$OtherList{$a} } keys %OtherList) {
#      print "   $line: $OtherList{$line} Time(s)\n";
#   }
#}

I would be thankful for any comments / suggestions / advices etc. Many thanks in advance!

Regards,
Dennis.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft

_______________________________________________
Logwatch-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/logwatch-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.