Bug 202935 - incorrect RegExp for postfix
Summary: incorrect RegExp for postfix
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: logwatch
Version: 4.0
Hardware: noarch
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Ivana Varekova
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-17 11:53 UTC by Frederic Jacquet
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-01-24 09:14:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
regexp fix (704 bytes, patch)
2006-08-17 11:53 UTC, Frederic Jacquet
no flags Details | Diff

Description Frederic Jacquet 2006-08-17 11:53:32 UTC
Description of problem:

Actual search string is 
[root@srv12act services]# egrep "[a-zA-Z0-9]+: client=([^ ]*\[[^ ]*\])$" /var/lo
803
But there can be some extra space at the end : 
[root@srv12act services]# egrep "[a-zA-Z0-9]+: client=([^ ]*\[[^ ]*\])\s*$"
/var/log/maillog|wc -l
215878


Version-Release number of selected component (if applicable):
Name        : logwatch                 
Version     : 5.2.2                  
Release     : 1.EL4.1                      

How reproducible:
Use any Mail relay logs

Steps to Reproduce:
1. run logwatch on postfix logs
2.
3.
  
Actual results:
4M of resulting mail

Expected results:
far less 

Additional info:
Proposed patch in unified format

Comment 1 Frederic Jacquet 2006-08-17 11:53:36 UTC
Created attachment 134378 [details]
regexp fix

Comment 2 Ivana Varekova 2007-01-24 09:14:22 UTC
For RHEL3 we're looking only for security and performance related bugs. I'm
closing this bug as WONTFIX.


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