SF.net SVN: logwatch:[95] scripts/services/iptables

[email protected]
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 95
          http://logwatch.svn.sourceforge.net/logwatch/?rev=95&view=rev
Author:   mtremaine
Date:     2012-04-14 17:36:15 +0000 (Sat, 14 Apr 2012)
Log Message:
-----------
Added optional space in time matching as per lekensteyn -mgt

Modified Paths:
--------------
    scripts/services/iptables

Modified: scripts/services/iptables
===================================================================
--- scripts/services/iptables	2012-04-14 17:32:47 UTC (rev 94)
+++ scripts/services/iptables	2012-04-14 17:36:15 UTC (rev 95)
@@ -128,7 +128,7 @@
    # the format for ulogd/ulogd.syslogmenu and messages differ in that
    # the earlier has no service name after the date.  So RemoveHeaders
    # doesn't work.  Therefore, we extract it here:
-   $ThisLine =~ s/^... .. ..:..:.. ([^ ]*) (kernel: )?(\[\d+\.\d+\] )?//;
+   $ThisLine =~ s/^... .. ..:..:.. ([^ ]*) (kernel: )?(\[\s*\d+\.\d+\] )?//;
 
    # IPCHAINS
    if( ($TU,$from,$port,$on) = ( $ThisLine =~ /IP fw-in deny \w+ (\w+) ([^:]+):\d+ ([^:]+):(\d+) / ) ){

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
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.