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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36f74cee9b25489eb5a9c05bb57f93e3594a322669a8647658e4b8ad7d1b06cb
4
- data.tar.gz: ac5bb30ac9e9b44c064a715bbc68230749e05a64c2f891294ad53fd76bb7ecca
3
+ metadata.gz: 36238086600ce9311ba454122cc083add38d913c2c811b03e378e919279f41a5
4
+ data.tar.gz: aab53741df59fe3046b6d1da024039554ec0e6782101245124f1678d6dba2d4c
5
5
  SHA512:
6
- metadata.gz: 5e592cd6776468d759d8b9c8ccad569bb61cde3a75671fa7188a185208431f92b4116f873f507cbefcb99b88291d7e6bba18f84e1c8f0685c94bf2a3bee36d43
7
- data.tar.gz: 3db35ae66ac7c974e5a821f1c83bb72dcd7184ea97d51ad8a4b874a172673f07adba22f09012081d65fa3a6a300d9f199ed46d7ae5fdaff5f6c1026e081ea506
6
+ metadata.gz: adc94f49992855c11a9cc78443195f5b5680363c9715777fdf4c0fb0dcdaad802136220d860cb7836c33c2ccb93c25da19f50104cffbf701f0bc1beab3e5cb91
7
+ data.tar.gz: 5f2565f892d0e840d6154c1284de7fb1956b3d524b2dbcd384bf297932d0fdc503df33cb4985196124e8036bff3a5d137f5a02ce252eb20d91cb6c97c5f9f6e1
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-heroku-parser"
6
- spec.version = "0.4.0"
6
+ spec.version = "0.5.0"
7
7
  spec.authors = ["ymurata"]
8
8
  spec.email = ["m.yuma0531@gmail.com"]
9
9
 
@@ -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
- time = Time.strptime($1+"+00:00", @time_format).to_i
40
- record = { host: $2, ident: $3, pid: $4 }.merge(parse_message($5))
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 で指定できるようにする
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-heroku-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ymurata