Accept a wider range of input patterns
authorarjen <arjen>
Mon, 22 Dec 2003 10:22:21 +0000 (10:22 +0000)
committerarjen <arjen>
Mon, 22 Dec 2003 10:22:21 +0000 (10:22 +0000)
src/gcm_input/access_cooker.cpp
src/gcm_input/error_cooker.cpp

index 5188204..03a9430 100644 (file)
@@ -8,7 +8,7 @@
 ***********************
 **      FILE NAME      : access_cooker.cpp
 **      SYSTEM NAME    : 
-**      VERSION NUMBER : $Revision: 1.2 $
+**      VERSION NUMBER : $Revision: 1.3 $
 **
 **  DESCRIPTION      :  Cooks Apache http daemon access log lines
 **
 
 /*****************************
    $Log: access_cooker.cpp,v $
-   Revision 1.2  2003-12-04 10:38:09  arjen
+   Revision 1.3  2003-12-22 10:22:21  arjen
+   Accept a wider range of input patterns
+
+   Revision 1.2  2003/12/04 10:38:09  arjen
    Major redesign. All input is handled through XML. Raw input data is first
    transformed into an XML document for further processing.
    A collection of polymorphic classes handle the transformation of various
 
 *****************************/
 
-/* static const char *RCSID = "$Id: access_cooker.cpp,v 1.2 2003-12-04 10:38:09 arjen Exp $"; */
+/* static const char *RCSID = "$Id: access_cooker.cpp,v 1.3 2003-12-22 10:22:21 arjen Exp $"; */
 
 #include <ctype.h>
 
 #include "access_cooker.h"
 
-static const regex re_accesslog("(GET|POST|HEAD) .+ HTTP");
+static const regex re_accesslog("(GET|POST|HEAD|OPTIONS|CONNECT) .+ HTTP");
 
 bool access_cooker::check_pattern(String logline)
 {
index 3179c68..a4ce102 100644 (file)
@@ -8,7 +8,7 @@
 ***********************
 **      FILE NAME      : error_cooker.cpp
 **      SYSTEM NAME    : 
-**      VERSION NUMBER : $Revision: 1.1 $
+**      VERSION NUMBER : $Revision: 1.2 $
 **
 **  DESCRIPTION      :  Cooks Apache http daemon error log lines
 **
 
 /*****************************
    $Log: error_cooker.cpp,v $
-   Revision 1.1  2003-08-11 16:56:16  arjen
+   Revision 1.2  2003-12-22 10:22:22  arjen
+   Accept a wider range of input patterns
+
+   Revision 1.1  2003/08/11 16:56:16  arjen
    Different kinds of log files are parsed by a collection of objects
    of different classes, derived from the base class line_cooker
    Depending on the message content or the message_type element in
 
 *****************************/
 
-/* static const char *RCSID = "$Id: error_cooker.cpp,v 1.1 2003-08-11 16:56:16 arjen Exp $"; */
+/* static const char *RCSID = "$Id: error_cooker.cpp,v 1.2 2003-12-22 10:22:22 arjen Exp $"; */
 
 #include <ctype.h>
 
 #include "error_cooker.h"
 
 static const String unix_date_re("[[:alpha:]]{3} [[:alpha:]]{3} [ 123][0-9] [0-9]{2}:[0-9]{2}:[0-9]{2} [0-9]{4}");
-static const regex re_errorlog("^\\[" + unix_date_re + "\\] \\[(error|notice)\\] .+");
+static const regex re_errorlog("^\\[" + unix_date_re + "\\] \\[(error|notice|warn)\\] .+");
 
 bool error_cooker::check_pattern(String logline)
 {