Bug 87483 - logwatch behaves on my "cgs-new" host.
logwatch behaves on my "cgs-new" host.
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: logwatch (Show other bugs)
9
All Linux
medium Severity medium
: ---
: ---
Assigned To: Elliot Lee
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-03-27 10:55 EST by Zoran Dzelajlija
Modified: 2007-04-18 12:52 EDT (History)
0 users

See Also:
Fixed In Version: 4.3.2-2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-07-10 13:15:37 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Zoran Dzelajlija 2003-03-27 10:55:21 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020913
Debian/1.2.6-2

Description of problem:
logwatch dumps all of the entries from /var/log/cron into my admin
mailbox.  Upon closer inspection, I found this regexp in
/etc/log.d/scripts/services/cron:

"s/^... .. ..:..:.. \w+ \w+\[\d+\]: \((\S+)\)\s+//"

This fails on my computer because the first \w doesn't match the "-" sign in my
hostname.  Replacing it with [\w-] is also incorrect (but works for me :-)
because, AFAIR, DNS documentation says host names should comprise of
[a-zA-Z0-9-] (note no underscore).  So the correct
regex would probably have [a-zA-Z0-9-]+ instead of the first \w.

Regards,
Zoran Dzelajlija

Version-Release number of selected component (if applicable):
logwatch-4.3.1-2

How reproducible:
Always

Steps to Reproduce:
1.set the hostname to something with - .
2.let some cron jobs trickle into the log
3.run /etc/cron.d/00-logwatch


Additional info:

Note You need to log in before you can comment on or make changes to this bug.