logstash-output-file 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -1
- data/logstash-output-file.gemspec +1 -1
- data/spec/outputs/file_spec.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a764f6a8510cb8b185ca81ec48c9b893473e0313
|
4
|
+
data.tar.gz: a525b4b6f8e3c998a44e4f0ed3d3a5857205a2ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a06888dc105e4f66b6c1e844b547d43c52f65d1a3e478de4f259b00d820b3ad3d6be8530fe05312d43fa36a1d41a733149b16922fad097498f22fa3ddced6fb
|
7
|
+
data.tar.gz: 897c0e4db7c8225958e82750b4fd6b9989ec7738ceca6da9caa63c084ef341fe5217a293ed505ea949f5f0b95af7661fff6e41a52fe2daaba70839852ce51229
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 2.2.1
|
2
|
+
- Fixed specs to not depend on pipeline ordering
|
3
|
+
|
1
4
|
## 2.2.1
|
2
5
|
- Fixed Time specs
|
3
6
|
|
@@ -14,4 +17,3 @@
|
|
14
17
|
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
15
18
|
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
16
19
|
- Dependency on logstash-core update to 2.0
|
17
|
-
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-file'
|
4
|
-
s.version = '2.2.
|
4
|
+
s.version = '2.2.2'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "This output will write events to files on disk"
|
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"
|
data/spec/outputs/file_spec.rb
CHANGED
@@ -32,8 +32,9 @@ describe LogStash::Outputs::File do
|
|
32
32
|
line_num = 0
|
33
33
|
|
34
34
|
# Now check all events for order and correctness.
|
35
|
-
tmp_file.
|
36
|
-
|
35
|
+
events = tmp_file.map {|line| LogStash::Event.new(LogStash::Json.load(line))}
|
36
|
+
sorted = events.sort_by {|e| e['sequence']}
|
37
|
+
sorted.each do |event|
|
37
38
|
insist {event["message"]} == "hello world"
|
38
39
|
insist {event["sequence"]} == line_num
|
39
40
|
line_num += 1
|
@@ -66,8 +67,9 @@ describe LogStash::Outputs::File do
|
|
66
67
|
agent do
|
67
68
|
line_num = 0
|
68
69
|
# Now check all events for order and correctness.
|
69
|
-
Zlib::GzipReader.open(tmp_file.path).
|
70
|
-
|
70
|
+
events = Zlib::GzipReader.open(tmp_file.path).map {|line| LogStash::Event.new(LogStash::Json.load(line)) }
|
71
|
+
sorted = events.sort_by {|e| e["sequence"]}
|
72
|
+
sorted.each do |event|
|
71
73
|
insist {event["message"]} == "hello world"
|
72
74
|
insist {event["sequence"]} == line_num
|
73
75
|
line_num += 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-file
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core
|