logstash-output-sumologic 1.2.0 → 1.3.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 +27 -1
- data/DEVELOPER.md +19 -3
- data/LICENSE +191 -13
- data/README.md +10 -6
- data/lib/logstash/outputs/sumologic.rb +11 -22
- data/lib/logstash/outputs/sumologic/batch.rb +13 -0
- data/lib/logstash/outputs/sumologic/common.rb +34 -7
- data/lib/logstash/outputs/sumologic/compressor.rb +3 -3
- data/lib/logstash/outputs/sumologic/header_builder.rb +19 -33
- data/lib/logstash/outputs/sumologic/message_queue.rb +33 -14
- data/lib/logstash/outputs/sumologic/monitor.rb +14 -9
- data/lib/logstash/outputs/sumologic/payload_builder.rb +11 -7
- data/lib/logstash/outputs/sumologic/piler.rb +40 -38
- data/lib/logstash/outputs/sumologic/sender.rb +63 -60
- data/lib/logstash/outputs/sumologic/statistics.rb +7 -31
- data/logstash-output-sumologic.gemspec +3 -3
- data/spec/outputs/sumologic/header_builder_spec.rb +134 -1
- data/spec/outputs/sumologic/message_queue_spec.rb +13 -11
- data/spec/outputs/sumologic/payload_builder_spec.rb +2 -3
- data/spec/outputs/sumologic/piler_spec.rb +67 -102
- data/spec/outputs/sumologic_spec.rb +10 -0
- metadata +15 -9
@@ -13,6 +13,16 @@ describe LogStash::Outputs::SumoLogic, :unless => (ENV["sumo_url"].to_s.empty?)
|
|
13
13
|
plugin.close()
|
14
14
|
end
|
15
15
|
|
16
|
+
context "default configuration" do
|
17
|
+
let(:plugin) {
|
18
|
+
LogStash::Outputs::SumoLogic.new("url" => ENV["sumo_url"])
|
19
|
+
}
|
20
|
+
|
21
|
+
it "cookies is by default disabled" do
|
22
|
+
expect(plugin.cookies).to be false
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
16
26
|
context "no pile" do
|
17
27
|
context "single sender" do
|
18
28
|
context "send log in json" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-sumologic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sumo Logic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: manticore
|
@@ -51,27 +51,33 @@ dependencies:
|
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '2.99'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
|
-
name: logstash-
|
54
|
+
name: logstash-mixin-http_client
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
59
|
+
version: '6'
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '8'
|
60
63
|
type: :runtime
|
61
64
|
prerelease: false
|
62
65
|
version_requirements: !ruby/object:Gem::Requirement
|
63
66
|
requirements:
|
64
67
|
- - ">="
|
65
68
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
69
|
+
version: '6'
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '8'
|
67
73
|
- !ruby/object:Gem::Dependency
|
68
|
-
name: logstash-
|
74
|
+
name: logstash-codec-plain
|
69
75
|
requirement: !ruby/object:Gem::Requirement
|
70
76
|
requirements:
|
71
77
|
- - ">="
|
72
78
|
- !ruby/object:Gem::Version
|
73
79
|
version: '0'
|
74
|
-
type: :
|
80
|
+
type: :development
|
75
81
|
prerelease: false
|
76
82
|
version_requirements: !ruby/object:Gem::Requirement
|
77
83
|
requirements:
|
@@ -106,6 +112,7 @@ files:
|
|
106
112
|
- LICENSE
|
107
113
|
- README.md
|
108
114
|
- lib/logstash/outputs/sumologic.rb
|
115
|
+
- lib/logstash/outputs/sumologic/batch.rb
|
109
116
|
- lib/logstash/outputs/sumologic/common.rb
|
110
117
|
- lib/logstash/outputs/sumologic/compressor.rb
|
111
118
|
- lib/logstash/outputs/sumologic/header_builder.rb
|
@@ -145,8 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
152
|
- !ruby/object:Gem::Version
|
146
153
|
version: '0'
|
147
154
|
requirements: []
|
148
|
-
|
149
|
-
rubygems_version: 2.7.7
|
155
|
+
rubygems_version: 3.1.2
|
150
156
|
signing_key:
|
151
157
|
specification_version: 4
|
152
158
|
summary: Deliever the log to Sumo Logic cloud service.
|