diff options
author | Edward Rudd <urkle@outoforder.cc> | 2008-10-22 12:40:58 (GMT) |
---|---|---|
committer | Edward Rudd <urkle@outoforder.cc> | 2008-10-22 12:40:58 (GMT) |
commit | 0ddd719a72469f732a881c93d4c804e9aca787fe (patch) | |
tree | e05821ff5a6ad0f00d63f23090ce4f2ec19bef75 /utility/mod_log_sql.conf | |
parent | cc75ebf7e8560a69a6847f0260cce4772fff440a (diff) |
added more config options
included PCRE wrapper from httpd
more complete log parser code.
fixed NASTY bug with setting values in the hash tables (Need to DUP the strings before setting the keys)
Diffstat (limited to 'utility/mod_log_sql.conf')
-rw-r--r-- | utility/mod_log_sql.conf | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/utility/mod_log_sql.conf b/utility/mod_log_sql.conf index 6cfae61..72f0205 100644 --- a/utility/mod_log_sql.conf +++ b/utility/mod_log_sql.conf | |||
@@ -9,7 +9,7 @@ LogLevel notice | |||
9 | DryRun on | 9 | DryRun on |
10 | Summary on | 10 | Summary on |
11 | 11 | ||
12 | LogFormatConfig CLF host String | 12 | LogFormatConfig CLF remhost String |
13 | LogFormatConfig CLF ident String | 13 | LogFormatConfig CLF ident String |
14 | LogFormatConfig CLF user String | 14 | LogFormatConfig CLF user String |
15 | LogFormatConfig CLF date Date | 15 | LogFormatConfig CLF date Date |
@@ -17,7 +17,7 @@ LogFormatConfig CLF request String | |||
17 | LogFormatConfig CLF status Number | 17 | LogFormatConfig CLF status Number |
18 | LogFormatConfig CLF bytes_sent Number | 18 | LogFormatConfig CLF bytes_sent Number |
19 | 19 | ||
20 | LogFormatConfig Combined host String | 20 | LogFormatConfig Combined remhost String |
21 | LogFormatConfig Combined ident String | 21 | LogFormatConfig Combined ident String |
22 | LogFormatConfig Combined user String | 22 | LogFormatConfig Combined user String |
23 | LogFormatConfig Combined date Date | 23 | LogFormatConfig Combined date Date |
@@ -28,3 +28,23 @@ LogFormatConfig Combined referer String | |||
28 | LogFormatConfig Combined agent String | 28 | LogFormatConfig Combined agent String |
29 | 29 | ||
30 | LogFormat Combined | 30 | LogFormat Combined |
31 | |||
32 | # not yet implemented | ||
33 | Linefilter - "BAD" | ||
34 | PreFilter request - "GET \/images" | ||
35 | PostFilter request_method "GET" | ||
36 | |||
37 | # Usage field datatype(size) source [function [param]...] | ||
38 | OutputField bytes_sent int bytes_sent | ||
39 | OutputField request_protocol varchar(10) request regexmatch "(HTTP\/[\d\.]+)$" | ||
40 | OutputField remote_host varchar(50) remhost | ||
41 | OutputField request_method varchar(25) request regexmatch "^(\w+)" | ||
42 | OutputField time_stamp int date totimestamp | ||
43 | OutputField status smallint status | ||
44 | OutputField request_uri varchar(255) request regexmatch "^\w+ (.+) \w+\.[\d\.]+$" | ||
45 | OutputField remote_user varchar(50) user | ||
46 | OutputField remote_logname varchar(50) ident | ||
47 | OutputField remote_time char(28) date | ||
48 | #Only used for Combined log input, if standard CLF input, they are ignored | ||
49 | OutputField agent varchar(255) agent | ||
50 | OutputField referer varchar(255) referer | ||