logstash-filter-google_appengine 0.111.0 → 0.112.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 169aa93b62c8d21f81e33782f4420316946ca295
4
- data.tar.gz: cea0673bc53727f8df56a3f4e9368ef69188d81f
3
+ metadata.gz: 96cdd6c30afa936dbda1d18196f23e0a5315c8a9
4
+ data.tar.gz: 5d064c9e7c1383339db1592786f83b860b0ad38b
5
5
  SHA512:
6
- metadata.gz: 66d925a4a82469488f4c0344fe5eeefee7e8eca164fb08ff9c864eb25a94df95d348828ce0807d791037ed603bcf1357caac7bcb55d1f9ab6fecedd95b174ef3
7
- data.tar.gz: f45cbe004380c3feb8a4d985a838e7c60cb9091d51e3f522f7512c7d5f37e523307a5bf92ecdea50680f0dc49e7aeab35b9cb2e26a9d3e5b27337dead6db7ef2
6
+ metadata.gz: 7947820441cbc44701246f034ca6b835d7e0f5ec9c3d2e36f20309781a4006ab88b30af23cc657a42d94fae2e4e6ff8262d4d7c981c66544df9d9b86b127e4dc
7
+ data.tar.gz: fbf99dfb6c824e75aeb12b710a950b107f3176df00b344e9e940f591834ae9ffc776fe8029b3bb6a3ed704368c66884bdc7a8891e98a2437dc0213da2695c1b1
@@ -32,7 +32,7 @@ class LogStash::Filters::GoogleAppengine < LogStash::Filters::Base
32
32
  # noinspection RubyStringKeysInHashInspection
33
33
  def collect_line_data(i, line, payload)
34
34
  {
35
- '_id' => @md5.hexdigest(payload['requestId'] + i.to_s),
35
+ 'id' => @md5.hexdigest(payload['requestId'] + i.to_s),
36
36
  'message' => line.delete('logMessage'),
37
37
  'position' => i
38
38
  }
@@ -43,7 +43,7 @@ class LogStash::Filters::GoogleAppengine < LogStash::Filters::Base
43
43
  # noinspection RubyStringKeysInHashInspection
44
44
  def collect_resource_request_data(payload)
45
45
  {
46
- '_id' => @md5.hexdigest(payload['requestId']),
46
+ 'id' => @md5.hexdigest(payload['requestId']),
47
47
  'time' => payload['endTime'],
48
48
  'position' => 0
49
49
  }
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-google_appengine'
4
- s.version = '0.111.0'
4
+ s.version = '0.112.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This filter 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"
@@ -19,19 +19,15 @@ describe LogStash::Filters::GoogleAppengine do
19
19
  insist { subject.length } == 3
20
20
 
21
21
  insist { subject[0]["message"] }=="IdentityFilter logUserIdentity: [[meta]] <anonymous:true>\n"
22
- insist { subject[0]["_id"] }== md5.hexdigest(subject[0]["requestId"] + "0")
22
+ insist { subject[0]["id"] }== md5.hexdigest(subject[0]["requestId"] + "0")
23
23
  insist { subject[0]["time"] } == "2015-09-03T10:59:40.589Z"
24
24
  insist { subject[0]["position"] } == 0
25
-
26
- insist { subject[0]["type"] } == "gae"
27
-
28
25
  insist { subject[0]["@type"] } == nil
29
26
 
30
27
  insist { subject[1]["message"] }=="HttpOnlyFilter getSession: add additional Set-Cookie with httpOnly-flag for JSESSIONID\n"
31
- insist { subject[1]["_id"] } == md5.hexdigest(subject[1]["requestId"] + "1")
28
+ insist { subject[1]["id"] } == md5.hexdigest(subject[1]["requestId"] + "1")
32
29
  insist { subject[1]["@type"] } == nil
33
30
  insist { subject[1]["time"] } =="2015-09-03T10:59:40.65Z"
34
- insist { subject[1]["type"] } == "gae"
35
31
  insist { subject[1]["position"] } == 1
36
32
  end
37
33
  end
@@ -40,9 +36,9 @@ describe LogStash::Filters::GoogleAppengine do
40
36
  test_sample = LogStash::Json.load(File.open("spec/filters/appengine.logs-without-lines.jsonl", "rb").read)
41
37
  sample (test_sample) do
42
38
 
43
- insist { subject["resource"] }=="/images/website/welcome/keyFeatures/objectives.jpg"
44
- insist { subject["_id"] }==md5.hexdigest(subject["requestId"])
45
- insist { subject["time"] }==subject["endTime"]
39
+ insist { subject["resource"] } == "/images/website/welcome/keyFeatures/objectives.jpg"
40
+ insist { subject["id"] } == md5.hexdigest(subject["requestId"])
41
+ insist { subject["time"] } == subject["endTime"]
46
42
  insist { subject["@type"] } == nil
47
43
  end
48
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-google_appengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.111.0
4
+ version: 0.112.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Small Improvements