Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70507 - logwatch not working if used with range yesterday or today: only works with --range all
Summary: logwatch not working if used with range yesterday or today: only works with -...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-08 14:27 UTC by Federico Agnelli
Modified: 2005-06-17 20:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Agnelli 2004-11-08 14:27:55 UTC
logwatch gives no output if used with option --range yesterday (or --range today). It works only with range all.

Reproducible: Always
Steps to Reproduce:
1. # emerge logwatch
2. # logwatch.pl --range yesterday --print


Actual Results:  
No output is printed

Expected Results:  
Print logs analysis

The system logger installed is syslog-ng
Comment 1 Federico Agnelli 2004-11-08 14:35:24 UTC
In /etc/log.d/scripts/shared/applystddate $SearchDate needs an ucfirst:
$SearchDate = ucfirst($SearchDate);
because syslog-ng creates dates with initial uppercase.
Maybe other config files require the same.
Comment 2 SpanKY gentoo-dev 2005-04-28 18:43:59 UTC
post a patch for 6.0.2 please
Comment 3 Sheldon Hearn 2005-06-17 04:37:47 UTC
Please try logwatch-6.1.2, which contains significant enhancement of the 
--range option.  You can get help for it with: 
 
    logwatch.pl --range help 
 
I've provided an ebuild and patch for logwatch-6.1.2 on bug #96362. 
 
If it works for you, add a comment saying so on that bug, so the committers are 
more likely to look at it. :-) 
Comment 4 SpanKY gentoo-dev 2005-06-17 20:51:37 UTC
if 6.1.2 still is an issue please send an e-mail to logwatch-bugs@logwatch.org