SF.net SVN: logwatch:[94] scripts/services/http

[email protected]
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 94
          http://logwatch.svn.sourceforge.net/logwatch/?rev=94&view=rev
Author:   mtremaine
Date:     2012-04-14 17:32:47 +0000 (Sat, 14 Apr 2012)
Log Message:
-----------
%V %I an %O LogFormat options added from Jonathan Kamens -mgt

Modified Paths:
--------------
    scripts/services/http

Modified: scripts/services/http
===================================================================
--- scripts/services/http	2012-04-14 17:27:52 UTC (rev 93)
+++ scripts/services/http	2012-04-14 17:32:47 UTC (rev 94)
@@ -402,6 +402,15 @@
       # issue
       $parse_field[$parse_index][$parse_subindex++] = "bytes_transfered";
       $parse_string[$parse_index] .= "(-|\\d*)";
+   } elsif ($logformat =~ /\G%V/gc) {
+      $parse_string[$parse_index] .= "(\\S*?)";
+      $parse_field[$parse_index][$parse_subindex++] = "server_name";
+   } elsif ($logformat =~ /\G%I/gc) {
+      $parse_field[$parse_index][$parse_subindex++] = "bytes_in";
+      $parse_string[$parse_index] .= "(-|\\d*)";
+   } elsif ($logformat =~ /\G%O/gc) {
+      $parse_field[$parse_index][$parse_subindex++] = "bytes_out";
+      $parse_string[$parse_index] .= "(-|\\d*)";
    } elsif ($logformat =~ /\G%{Referer}i/gci) {
       $parse_string[$parse_index] .= "(.*)";
       $parse_field[$parse_index][$parse_subindex++] = "referrer";

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.