logstash-codec-google_appengine 1.11.0 → 1.12.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
  SHA1:
3
- metadata.gz: 77d4a1ef7e15934b7ddea3bf376306d074f5def7
4
- data.tar.gz: 22f26fa78986bd8115c9b71368f4ee8b543e3df7
3
+ metadata.gz: 9e64fa31a498f2733cd1aace6896837a5da93060
4
+ data.tar.gz: 458a897c3bd4142c59d0c57369aad90a77a39aed
5
5
  SHA512:
6
- metadata.gz: 51f5f16d825d82820364b0cc07d5059d5cdaaaeb9aed790245b850382f14b1180750da2161c08800f8fdbdec622c8280ef387f8d52e427950372c4a082cac3e1
7
- data.tar.gz: 36d1de93d54a0253afabcd02582fc7e1c7dbee77e2ea8d3f5930392df632086a2ff791e65eb8b67f3d95d21c0d722056748ea113ca546389fd0c56f85084f958
6
+ metadata.gz: 84a8d4b09a974b63b506b5f72977cb554245a0a93065fa6c532b5759fab1c59a17ec8366e2746aba75888ebb4502ae79a75423da1f26e1b236f969dd27d9d95d
7
+ data.tar.gz: b36061e3692b7e872d804d444da3b5ffa9526547e6df0bc05a6eb280964eb1f4a39d993faef0ce1ab0b3b108e3fb599ba97fb6a1b97d77b965b997a970346fc2
@@ -48,12 +48,12 @@ def flatten(event)
48
48
  payload.delete 'line'
49
49
  lines.map.with_index { |line, i|
50
50
  merged = payload.merge line
51
- merged['id'] = @md5.hexdigest merged['requestId'] + i.to_s
51
+ merged['_id'] = @md5.hexdigest merged['requestId'] + i.to_s
52
52
  merged['message'] = merged.delete 'logMessage'
53
53
  merged
54
54
  }
55
55
  else
56
- payload['id'] = @md5.hexdigest payload['requestId']
56
+ payload['_id'] = @md5.hexdigest payload['requestId']
57
57
  payload['time'] = payload['endTime']
58
58
  [payload]
59
59
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-google_appengine'
4
- s.version = '1.11.0'
4
+ s.version = '1.12.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This codec may be used to decode via inputs appengine logs"
7
7
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
@@ -33,11 +33,11 @@ context "#decode" do
33
33
  expect(collector.size).to eq(3)
34
34
 
35
35
  expect(collector[0]["message"]).to eq("IdentityFilter logUserIdentity: [[meta]] <anonymous:true>\n")
36
- expect(collector[0]["id"]).to eq(md5.hexdigest collector[0]["requestId"] + "0")
36
+ expect(collector[0]["_id"]).to eq(md5.hexdigest collector[0]["requestId"] + "0")
37
37
  expect(collector[0]["@type"]).to be_nil
38
38
 
39
39
  expect(collector[1]["message"]).to eq("HttpOnlyFilter getSession: add additional Set-Cookie with httpOnly-flag for JSESSIONID\n")
40
- expect(collector[1]["id"]).to eq(md5.hexdigest collector[1]["requestId"] + "1")
40
+ expect(collector[1]["_id"]).to eq(md5.hexdigest collector[1]["requestId"] + "1")
41
41
  expect(collector[1]["@type"]).to be_nil
42
42
  end
43
43
 
@@ -54,7 +54,7 @@ context "#decode" do
54
54
  expect(collector.size).to eq(1)
55
55
 
56
56
  expect(collector[0]["resource"]).to eq("/images/website/welcome/keyFeatures/objectives.jpg")
57
- expect(collector[0]["id"]).to eq(md5.hexdigest collector[0]["requestId"])
57
+ expect(collector[0]["_id"]).to eq(md5.hexdigest collector[0]["requestId"])
58
58
  expect(collector[0]["time"]).to eq(collector[0]["endTime"])
59
59
  expect(collector[0]["@type"]).to be_nil
60
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-google_appengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Small Improvements