logstash-codec-oldlogstashjson 0.1.2 → 0.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7022d8667566859c598e7da8c56765d00633b6e0
|
4
|
+
data.tar.gz: ca7d63628a727e0cfc655df7f4e296b5660e4c39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1394c3535cfb3b91a2885f342581f7cd9f7f54b8b2a1945bacbc1d78dcbfcc2f8188120947e2ca63b16e8be0102e30c63a6b6024a082911126b986e65b9356c7
|
7
|
+
data.tar.gz: bf622c836c1fd5af663db7f90725a2af18d2b565f96ef3b03548cf353dd8cd04eb8eb5b4ca746a9b17009c050e16d31281f5f4a2cf17b5886cd341acc56bf617
|
@@ -51,7 +51,7 @@ class LogStash::Codecs::OldLogStashJSON < LogStash::Codecs::Base
|
|
51
51
|
end
|
52
52
|
|
53
53
|
# Tack on a \n because JSON outputs 1.1.x had them.
|
54
|
-
@on_event.call(LogStash::Json.dump(h) + NL)
|
54
|
+
@on_event.call(event, LogStash::Json.dump(h) + NL)
|
55
55
|
end # def encode
|
56
56
|
|
57
57
|
end # class LogStash::Codecs::OldLogStashJSON
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-codec-oldlogstashjson'
|
4
|
-
s.version = '0.1.
|
4
|
+
s.version = '0.1.3'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Codec to convert v0 logstash format to v1"
|
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"
|
@@ -38,7 +38,7 @@ describe LogStash::Codecs::OldLogStashJSON do
|
|
38
38
|
"bah" => "baz"}
|
39
39
|
event = LogStash::Event.new(data)
|
40
40
|
got_event = false
|
41
|
-
subject.on_event do |d|
|
41
|
+
subject.on_event do |e, d|
|
42
42
|
insist { LogStash::Json.load(d)["@timestamp"] } != nil
|
43
43
|
insist { LogStash::Json.load(d)["@type"] } == data["type"]
|
44
44
|
insist { LogStash::Json.load(d)["@message"] } == data["message"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-codec-oldlogstashjson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elasticsearch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|