SF.net SVN: logwatch:[184] scripts/services/mysql

[email protected]
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 184
          http://sourceforge.net/p/logwatch/code/184
Author:   stefjakobs
Date:     2014-01-26 13:46:58 +0000 (Sun, 26 Jan 2014)
Log Message:
-----------
mysql: count logs with increasing number only once (reported by
fisch666)

Modified Paths:
--------------
    scripts/services/mysql

Modified: scripts/services/mysql
===================================================================
--- scripts/services/mysql	2014-01-26 13:32:28 UTC (rev 183)
+++ scripts/services/mysql	2014-01-26 13:46:58 UTC (rev 184)
@@ -62,6 +62,10 @@
 	$time = timelocal($6, $5, $4, $3, $2-1, $1);
     }
 
+   # Count lines with increasing number as one:
+   #  [Warning] Aborted connection 107194 to db: ...
+   $line =~ s/(Aborted connection) \d+ (to db)/$1 $2/;
+
     foreach my $cur_cat (@message_categories) {
 	if($line =~ /$cur_cat->[1]/) {
 	    my $msgs = $cur_cat->[2];

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


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
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.