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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e64fa31a498f2733cd1aace6896837a5da93060
|
4
|
+
data.tar.gz: 458a897c3bd4142c59d0c57369aad90a77a39aed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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['
|
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['
|
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.
|
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]["
|
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]["
|
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]["
|
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
|