fluent-plugin-parserequestbody 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 0dfaa791893146db7d82681e2ed268f29a057daf
4
- data.tar.gz: e5b0011c3d630c5cfa4a77fb0ac34962e9d01571
3
+ metadata.gz: 7b1c828470fb7233e648aca086fe910187dfe73b
4
+ data.tar.gz: 071564d902583b6fb54e0a4b96234650e0fed217
5
5
  SHA512:
6
- metadata.gz: 67894f81130dcfcf2f172dda141e6a54b4c2a499fc43907f1bec7a7a7a47113d5f6096c6aab743466342e8e0c5f6e4f65d9dac4748e1c04ef5e88667a95a12fb
7
- data.tar.gz: 1a88ad102d3cfba4f546ff4e99a8b5a57145e64432eda39f2e4b6f2ccc7fd65c97c8461c97966f4f89b3264dc8b783ee7b685f40851e591aab33c7e88fe8f333
6
+ metadata.gz: 90a228fae0aa59bcde588bb2da4752eb8fec43003574afd395ceca668e6d37a7172b72fb25d3f69057f7a2e5b4f5fe0c2b7b5612a4d28cf891ef2f01f1b91cd4
7
+ data.tar.gz: 9ce6798bc58abdecefa9ae3cdd4d5161fc5404a84b048379d30388e25ce86228d86b4d242dc3be48477785a5891cd613c97ca3d470d6d8838784643631995b59
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "fluent-plugin-parserequestbody"
8
- spec.version = "0.0.2"
8
+ spec.version = "0.0.3"
9
9
  spec.authors = ["Keiichiro Nagashima"]
10
10
  spec.email = ["k16.nagshima@gmail.com"]
11
11
  spec.summary = %q{Fluentd plugin for parse request body}
@@ -9,9 +9,11 @@ class Fluent::ParseRequestbodyInput < Fluent::TailInput
9
9
  elements = line.split("\t")
10
10
 
11
11
  time = elements.shift
12
+ time_local = time # We need raw time_local data
12
13
  time = Time.strptime(time, @time_format).to_i
13
14
 
14
15
  record = {}
16
+ record["time_local"] = time_local
15
17
  while (k = elements.shift) && (v = elements.shift)
16
18
  if(k =~ /request_body/)
17
19
  self.parseRequestBody(k, record)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-parserequestbody
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keiichiro Nagashima