factorylabs-activewarehouse-etl 0.9.1.6 → 0.9.1.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module ETL #:nodoc:
|
|
18
18
|
|
19
19
|
def parse(line)
|
20
20
|
# example line: 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)"
|
21
|
-
line =~ /^(\S+)\s(\S+)\s(\S+)\s\[([^\]]*)\]\s"([^"]*)"\s(\d*)\s(\d*)\s"([^"]*)"\s"([^"]*)"
|
21
|
+
line =~ /^(\S+)\s(\S+)\s(\S+)\s\[([^\]]*)\]\s"([^"]*)"\s(\d*)\s(\d*)\s"([^"]*)"\s"([^"]*)"/
|
22
22
|
fields = {
|
23
23
|
:ip_address => $1,
|
24
24
|
:identd => $2,
|