logstash-codec-rfc6587 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/codecs/rfc6587.rb +5 -1
- data/logstash-codec-rfc6587.gemspec +1 -1
- data/spec/codecs/rfc6587_spec.rb +21 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35642c5e5db8b142c4afb325b96fb4cd24cf9b5f711c61476d601c382dcf4e57
|
4
|
+
data.tar.gz: 294de35a68a24b131e6fec7035d784161698c8ba82fee4fb676de7f763031aa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48e8171e101c400fb9c42050a1b8303d0c920f567872e02bf76f003fdad211137fd42e8688b755148744dd2fef834a0e47b3169336a3e4273978c7509e168677
|
7
|
+
data.tar.gz: 51c30b54a8546cb2297c6d3ce8baccd297a16fa975c950ff6464cd801a8a6467485c5c6e6687410ccb3f9aa59c5c65c507bce8f55bedfb7bd73c2d1cf09868c6
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-codec-rfc6587'
|
4
|
-
s.version = '0.1.
|
4
|
+
s.version = '0.1.4'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Reads lines as described in rfc6587"
|
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/logstash-plugin install gemname. This gem is not a stand-alone program"
|
data/spec/codecs/rfc6587_spec.rb
CHANGED
@@ -86,6 +86,26 @@ describe LogStash::Codecs::Rfc6587, :ecs_compatibility_support do
|
|
86
86
|
insist { decoded } == true
|
87
87
|
end
|
88
88
|
|
89
|
+
it "should contain correct results when input contains newline" do
|
90
|
+
result = []
|
91
|
+
subject.decode("5 line17 line2\n!5 line3") { |e| result << e }
|
92
|
+
subject.flush { |e| result << e }
|
93
|
+
expect(result.size).to eq(3)
|
94
|
+
expect(result[0].get("message")).to eq("line1")
|
95
|
+
expect(result[1].get("message")).to eq("line2\n!")
|
96
|
+
expect(result[2].get("message")).to eq("line3")
|
97
|
+
end
|
98
|
+
|
99
|
+
it "should parse partial batches" do
|
100
|
+
result = []
|
101
|
+
subject.decode("5 line15 line") { |e| result << e }
|
102
|
+
subject.decode("25 line3") { |e| result << e }
|
103
|
+
subject.flush { |e| result << e }
|
104
|
+
expect(result.size).to eq(3)
|
105
|
+
expect(result[0].get("message")).to eq("line1")
|
106
|
+
expect(result[1].get("message")).to eq("line2")
|
107
|
+
expect(result[2].get("message")).to eq("line3")
|
108
|
+
end
|
89
109
|
|
90
110
|
ecs_compatibility_matrix(:disabled, :v1, :v8 => :v1) do |ecs_select|
|
91
111
|
|
@@ -137,6 +157,7 @@ describe LogStash::Codecs::Rfc6587, :ecs_compatibility_support do
|
|
137
157
|
expect(result[1].get("message")).to eq("line2")
|
138
158
|
expect(result[2].get("message")).to eq("line3")
|
139
159
|
end
|
160
|
+
|
140
161
|
end
|
141
162
|
end
|
142
163
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-codec-rfc6587
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-10-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -21,8 +21,8 @@ dependencies:
|
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2.99'
|
23
23
|
name: logstash-core-plugin-api
|
24
|
-
type: :runtime
|
25
24
|
prerelease: false
|
25
|
+
type: :runtime
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
@@ -38,8 +38,8 @@ dependencies:
|
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '1.0'
|
40
40
|
name: logstash-mixin-event_support
|
41
|
-
type: :runtime
|
42
41
|
prerelease: false
|
42
|
+
type: :runtime
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
@@ -52,8 +52,8 @@ dependencies:
|
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '1.3'
|
54
54
|
name: logstash-mixin-ecs_compatibility_support
|
55
|
-
type: :runtime
|
56
55
|
prerelease: false
|
56
|
+
type: :runtime
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
@@ -66,8 +66,8 @@ dependencies:
|
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
name: logstash-devutils
|
69
|
-
type: :development
|
70
69
|
prerelease: false
|
70
|
+
type: :development
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -80,8 +80,8 @@ dependencies:
|
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
name: insist
|
83
|
-
type: :development
|
84
83
|
prerelease: false
|
84
|
+
type: :development
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|