fluent-plugin-heroku-parser 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-heroku-parser.gemspec +1 -1
- data/lib/fluent/plugin/parser_heroku_parser.rb +2 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36238086600ce9311ba454122cc083add38d913c2c811b03e378e919279f41a5
|
4
|
+
data.tar.gz: aab53741df59fe3046b6d1da024039554ec0e6782101245124f1678d6dba2d4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adc94f49992855c11a9cc78443195f5b5680363c9715777fdf4c0fb0dcdaad802136220d860cb7836c33c2ccb93c25da19f50104cffbf701f0bc1beab3e5cb91
|
7
|
+
data.tar.gz: 5f2565f892d0e840d6154c1284de7fb1956b3d524b2dbcd384bf297932d0fdc503df33cb4985196124e8036bff3a5d137f5a02ce252eb20d91cb6c97c5f9f6e1
|
@@ -31,14 +31,12 @@ module Fluent
|
|
31
31
|
|
32
32
|
def configure(conf)
|
33
33
|
super
|
34
|
-
@time_format = conf["time_format"] || "%b %m %H:%M:%S%z"
|
35
34
|
end
|
36
35
|
|
37
36
|
def parse(text)
|
38
37
|
text =~ /^([^ ]*\s+[^ ]*\s+[^ ]*?)\s([^ ]*?)\s([a-zA-Z0-9_\/\.\-]*)\[([a-zA-Z0-9\.]+)\]?\s(.*)$/
|
39
|
-
|
40
|
-
|
41
|
-
return time, record
|
38
|
+
record = { access_time: $1, host: $2, ident: $3, pid: $4 }.merge(parse_message($5))
|
39
|
+
return Time.now.to_i, record
|
42
40
|
end
|
43
41
|
|
44
42
|
# TODO: 取得するログを config で指定できるようにする
|