logstash-core 5.0.0.alpha2.snapshot2-java → 5.0.0.alpha3-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of logstash-core might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/logstash-core/version.rb +1 -1
- data/lib/logstash/agent.rb +48 -31
- data/lib/logstash/api/{lib/helpers/app_helpers.rb → app_helpers.rb} +0 -0
- data/lib/logstash/api/command_factory.rb +34 -0
- data/lib/logstash/api/commands/base.rb +25 -0
- data/lib/logstash/api/commands/stats.rb +105 -0
- data/lib/logstash/api/commands/system/basicinfo_command.rb +23 -0
- data/lib/logstash/api/commands/system/plugins_command.rb +35 -0
- data/lib/logstash/api/modules/base.rb +43 -0
- data/lib/logstash/api/modules/node.rb +24 -0
- data/lib/logstash/api/modules/node_stats.rb +59 -0
- data/lib/logstash/api/modules/plugins.rb +15 -0
- data/lib/logstash/api/modules/root.rb +15 -0
- data/lib/logstash/api/modules/stats.rb +63 -0
- data/lib/logstash/api/rack_app.rb +33 -0
- data/lib/logstash/api/service.rb +73 -0
- data/lib/logstash/config/config_ast.rb +23 -18
- data/lib/logstash/config/loader.rb +4 -4
- data/lib/logstash/config/mixin.rb +10 -21
- data/lib/logstash/environment.rb +29 -0
- data/lib/logstash/filters/base.rb +2 -2
- data/lib/logstash/inputs/base.rb +2 -2
- data/lib/logstash/instrument/collector.rb +1 -1
- data/lib/logstash/instrument/metric_store.rb +11 -1
- data/lib/logstash/instrument/periodic_poller/base.rb +2 -0
- data/lib/logstash/instrument/periodic_poller/jvm.rb +47 -2
- data/lib/logstash/logging/json.rb +21 -0
- data/lib/logstash/output_delegator.rb +2 -2
- data/lib/logstash/patches/clamp.rb +69 -0
- data/lib/logstash/pipeline.rb +36 -69
- data/lib/logstash/plugin.rb +1 -1
- data/lib/logstash/runner.rb +171 -146
- data/lib/logstash/settings.rb +267 -0
- data/lib/logstash/util/decorators.rb +6 -6
- data/lib/logstash/util/java_version.rb +1 -10
- data/lib/logstash/util/thread_dump.rb +55 -0
- data/lib/logstash/util/worker_threads_default_printer.rb +2 -2
- data/lib/logstash/version.rb +1 -1
- data/lib/logstash/webserver.rb +15 -49
- data/locales/en.yml +22 -25
- data/logstash-core.gemspec +3 -3
- data/spec/api/lib/api/node_spec.rb +2 -2
- data/spec/api/lib/api/node_stats_spec.rb +32 -57
- data/spec/api/lib/api/plugins_spec.rb +3 -3
- data/spec/api/lib/api/root_spec.rb +2 -2
- data/spec/api/lib/api/support/resource_dsl_methods.rb +47 -0
- data/spec/api/lib/commands/stats.rb +47 -0
- data/spec/api/spec_helper.rb +21 -21
- data/spec/conditionals_spec.rb +113 -113
- data/spec/logstash/agent_spec.rb +85 -68
- data/spec/logstash/config/config_ast_spec.rb +4 -2
- data/spec/logstash/config/mixin_spec.rb +33 -7
- data/spec/logstash/filters/base_spec.rb +16 -16
- data/spec/logstash/inputs/base_spec.rb +8 -8
- data/spec/logstash/instrument/periodic_poller/jvm_spec.rb +45 -0
- data/spec/logstash/output_delegator_spec.rb +2 -0
- data/spec/logstash/pipeline_reporter_spec.rb +5 -1
- data/spec/logstash/pipeline_spec.rb +75 -30
- data/spec/logstash/plugin_spec.rb +2 -2
- data/spec/logstash/runner_spec.rb +112 -25
- data/spec/logstash/setting_spec.rb +130 -0
- data/spec/logstash/settings_spec.rb +62 -0
- metadata +37 -43
- data/lib/logstash/api/init.ru +0 -31
- data/lib/logstash/api/lib/app.rb +0 -40
- data/lib/logstash/api/lib/app/command.rb +0 -29
- data/lib/logstash/api/lib/app/command_factory.rb +0 -29
- data/lib/logstash/api/lib/app/commands/stats/events_command.rb +0 -13
- data/lib/logstash/api/lib/app/commands/stats/hotthreads_command.rb +0 -120
- data/lib/logstash/api/lib/app/commands/stats/memory_command.rb +0 -25
- data/lib/logstash/api/lib/app/commands/system/basicinfo_command.rb +0 -15
- data/lib/logstash/api/lib/app/commands/system/plugins_command.rb +0 -28
- data/lib/logstash/api/lib/app/modules/node.rb +0 -25
- data/lib/logstash/api/lib/app/modules/node_stats.rb +0 -51
- data/lib/logstash/api/lib/app/modules/plugins.rb +0 -15
- data/lib/logstash/api/lib/app/modules/stats.rb +0 -21
- data/lib/logstash/api/lib/app/root.rb +0 -13
- data/lib/logstash/api/lib/app/service.rb +0 -61
- data/lib/logstash/api/lib/app/stats.rb +0 -56
- data/lib/logstash/util/defaults_printer.rb +0 -31
- data/spec/api/lib/api/stats_spec.rb +0 -19
- data/spec/api/lib/commands/events_spec.rb +0 -17
- data/spec/api/lib/commands/jvm_spec.rb +0 -45
- data/spec/logstash/util/defaults_printer_spec.rb +0 -50
- data/spec/logstash/util/worker_threads_default_printer_spec.rb +0 -45
@@ -8,12 +8,12 @@ require "logstash/filters/base"
|
|
8
8
|
|
9
9
|
describe LogStash::Plugin do
|
10
10
|
it "should fail lookup on inexisting type" do
|
11
|
-
expect_any_instance_of(Cabin::Channel).to receive(:debug).once
|
11
|
+
#expect_any_instance_of(Cabin::Channel).to receive(:debug).once
|
12
12
|
expect { LogStash::Plugin.lookup("badbadtype", "badname") }.to raise_error(LogStash::PluginLoadingError)
|
13
13
|
end
|
14
14
|
|
15
15
|
it "should fail lookup on inexisting name" do
|
16
|
-
expect_any_instance_of(Cabin::Channel).to receive(:debug).once
|
16
|
+
#expect_any_instance_of(Cabin::Channel).to receive(:debug).once
|
17
17
|
expect { LogStash::Plugin.lookup("filter", "badname") }.to raise_error(LogStash::PluginLoadingError)
|
18
18
|
end
|
19
19
|
|
@@ -3,7 +3,10 @@ require "spec_helper"
|
|
3
3
|
require "logstash/runner"
|
4
4
|
require "stud/task"
|
5
5
|
require "stud/trap"
|
6
|
+
require "stud/temporary"
|
6
7
|
require "logstash/util/java_version"
|
8
|
+
require "logstash/logging/json"
|
9
|
+
require "json"
|
7
10
|
|
8
11
|
class NullRunner
|
9
12
|
def run(args); end
|
@@ -17,15 +20,49 @@ describe LogStash::Runner do
|
|
17
20
|
before :each do
|
18
21
|
allow(Cabin::Channel).to receive(:get).with(LogStash).and_return(channel)
|
19
22
|
allow(channel).to receive(:subscribe).with(any_args)
|
23
|
+
allow(channel).to receive(:log) {}
|
24
|
+
allow(LogStash::ShutdownWatcher).to receive(:logger).and_return(channel)
|
25
|
+
end
|
26
|
+
|
27
|
+
after :each do
|
28
|
+
LogStash::SETTINGS.reset
|
29
|
+
end
|
30
|
+
|
31
|
+
after :all do
|
32
|
+
LogStash::ShutdownWatcher.logger = nil
|
33
|
+
end
|
34
|
+
|
35
|
+
describe "argument precedence" do
|
36
|
+
let(:config) { "input {} output {}" }
|
37
|
+
let(:cli_args) { ["-e", config, "-w", "20"] }
|
38
|
+
let(:settings_yml_hash) { { "pipeline.workers" => 2 } }
|
39
|
+
|
40
|
+
before :each do
|
41
|
+
allow(LogStash::SETTINGS).to receive(:read_yaml).and_return(settings_yml_hash)
|
42
|
+
end
|
43
|
+
|
44
|
+
after :each do
|
45
|
+
LogStash::SETTINGS.reset
|
46
|
+
end
|
47
|
+
|
48
|
+
it "favors the last occurence of an option" do
|
49
|
+
expect(LogStash::Agent).to receive(:new) do |settings|
|
50
|
+
expect(settings.get("config.string")).to eq(config)
|
51
|
+
expect(settings.get("pipeline.workers")).to eq(20)
|
52
|
+
end
|
53
|
+
subject.run("bin/logstash", cli_args)
|
54
|
+
end
|
20
55
|
end
|
21
56
|
|
22
57
|
describe "argument parsing" do
|
23
58
|
subject { LogStash::Runner.new("") }
|
59
|
+
before :each do
|
60
|
+
allow(Cabin::Channel.get(LogStash)).to receive(:terminal)
|
61
|
+
end
|
24
62
|
context "when -e is given" do
|
25
63
|
|
26
64
|
let(:args) { ["-e", "input {} output {}"] }
|
27
65
|
let(:agent) { double("agent") }
|
28
|
-
let(:agent_logger) { double("agent logger") }
|
29
66
|
|
30
67
|
before do
|
31
68
|
allow(agent).to receive(:logger=).with(anything)
|
@@ -42,10 +79,8 @@ describe LogStash::Runner do
|
|
42
79
|
|
43
80
|
context "with no arguments" do
|
44
81
|
let(:args) { [] }
|
45
|
-
let(:agent) { double("agent") }
|
46
82
|
|
47
83
|
before(:each) do
|
48
|
-
allow(LogStash::Agent).to receive(:new).and_return(agent)
|
49
84
|
allow(LogStash::Util::JavaVersion).to receive(:warn_on_bad_java_version)
|
50
85
|
end
|
51
86
|
|
@@ -96,7 +131,33 @@ describe LogStash::Runner do
|
|
96
131
|
end
|
97
132
|
end
|
98
133
|
|
99
|
-
describe "--
|
134
|
+
describe "--log.format=json" do
|
135
|
+
subject { LogStash::Runner.new("") }
|
136
|
+
let(:logfile) { Stud::Temporary.file }
|
137
|
+
let(:args) { [ "--log.format", "json", "-l", logfile.path, "-e", "input {} output{}" ] }
|
138
|
+
|
139
|
+
after do
|
140
|
+
logfile.close
|
141
|
+
File.unlink(logfile.path)
|
142
|
+
end
|
143
|
+
|
144
|
+
before do
|
145
|
+
expect(channel).to receive(:subscribe).with(kind_of(LogStash::Logging::JSON)).and_call_original
|
146
|
+
subject.run(args)
|
147
|
+
|
148
|
+
# Log file should have stuff in it.
|
149
|
+
expect(logfile.stat.size).to be > 0
|
150
|
+
end
|
151
|
+
|
152
|
+
it "should log in valid json. One object per line." do
|
153
|
+
logfile.each_line do |line|
|
154
|
+
expect(line).not_to be_empty
|
155
|
+
expect { JSON.parse(line) }.not_to raise_error
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
describe "--config.test_and_exit" do
|
100
161
|
subject { LogStash::Runner.new("") }
|
101
162
|
let(:args) { ["-t", "-e", pipeline_string] }
|
102
163
|
|
@@ -130,8 +191,9 @@ describe LogStash::Runner do
|
|
130
191
|
|
131
192
|
context "when :pipeline_workers is not defined by the user" do
|
132
193
|
it "should not pass the value to the pipeline" do
|
133
|
-
expect(LogStash::
|
134
|
-
|
194
|
+
expect(LogStash::Agent).to receive(:new) do |settings|
|
195
|
+
expect(settings.set?("pipeline.workers")).to be(false)
|
196
|
+
end
|
135
197
|
args = ["-e", pipeline_string]
|
136
198
|
subject.run("bin/logstash", args)
|
137
199
|
end
|
@@ -139,42 +201,67 @@ describe LogStash::Runner do
|
|
139
201
|
|
140
202
|
context "when :pipeline_workers is defined by the user" do
|
141
203
|
it "should pass the value to the pipeline" do
|
142
|
-
|
143
|
-
|
204
|
+
expect(LogStash::Agent).to receive(:new) do |settings|
|
205
|
+
expect(settings.set?("pipeline.workers")).to be(true)
|
206
|
+
expect(settings.get("pipeline.workers")).to be(2)
|
207
|
+
end
|
144
208
|
|
145
209
|
args = ["-w", "2", "-e", pipeline_string]
|
146
210
|
subject.run("bin/logstash", args)
|
147
211
|
end
|
148
212
|
end
|
149
213
|
|
150
|
-
describe "
|
151
|
-
it "should set '
|
152
|
-
expect(LogStash::
|
153
|
-
|
154
|
-
|
214
|
+
describe "config.debug" do
|
215
|
+
it "should set 'config.debug' to false by default" do
|
216
|
+
expect(LogStash::Agent).to receive(:new) do |settings|
|
217
|
+
expect(settings.get("config.debug")).to eq(false)
|
218
|
+
end
|
219
|
+
args = ["--log.level", "debug", "-e", pipeline_string]
|
155
220
|
subject.run("bin/logstash", args)
|
156
221
|
end
|
157
222
|
|
158
|
-
it "should allow overriding
|
159
|
-
expect(LogStash::
|
160
|
-
|
161
|
-
|
223
|
+
it "should allow overriding config.debug" do
|
224
|
+
expect(LogStash::Agent).to receive(:new) do |settings|
|
225
|
+
expect(settings.get("config.debug")).to eq(true)
|
226
|
+
end
|
227
|
+
args = ["--log.level", "debug", "--config.debug", "-e", pipeline_string]
|
162
228
|
subject.run("bin/logstash", args)
|
163
229
|
end
|
164
230
|
end
|
231
|
+
end
|
165
232
|
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
233
|
+
describe "--log.level" do
|
234
|
+
before :each do
|
235
|
+
allow_any_instance_of(subject).to receive(:show_version)
|
236
|
+
end
|
237
|
+
context "when not set" do
|
238
|
+
it "should set log level to warn" do
|
239
|
+
args = ["--version"]
|
170
240
|
subject.run("bin/logstash", args)
|
241
|
+
expect(channel.level).to eq(:warn)
|
171
242
|
end
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
243
|
+
end
|
244
|
+
context "when setting to debug" do
|
245
|
+
it "should set log level to debug" do
|
246
|
+
args = ["--log.level", "debug", "--version"]
|
247
|
+
subject.run("bin/logstash", args)
|
248
|
+
expect(channel.level).to eq(:debug)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
context "when setting to verbose" do
|
252
|
+
it "should set log level to info" do
|
253
|
+
args = ["--log.level", "verbose", "--version"]
|
176
254
|
subject.run("bin/logstash", args)
|
255
|
+
expect(channel.level).to eq(:info)
|
256
|
+
end
|
257
|
+
end
|
258
|
+
context "when setting to quiet" do
|
259
|
+
it "should set log level to error" do
|
260
|
+
args = ["--log.level", "quiet", "--version"]
|
261
|
+
subject.run("bin/logstash", args)
|
262
|
+
expect(channel.level).to eq(:error)
|
177
263
|
end
|
178
264
|
end
|
179
265
|
end
|
266
|
+
|
180
267
|
end
|
@@ -0,0 +1,130 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require "spec_helper"
|
3
|
+
require "logstash/settings"
|
4
|
+
|
5
|
+
describe LogStash::Setting do
|
6
|
+
let(:logger) { double("logger") }
|
7
|
+
describe "#value" do
|
8
|
+
context "when using a default value" do
|
9
|
+
context "when no value is set" do
|
10
|
+
subject { described_class.new("number", Numeric, 1) }
|
11
|
+
it "should return the default value" do
|
12
|
+
expect(subject.value).to eq(1)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
context "when a value is set" do
|
17
|
+
subject { described_class.new("number", Numeric, 1) }
|
18
|
+
let(:new_value) { 2 }
|
19
|
+
before :each do
|
20
|
+
subject.set(new_value)
|
21
|
+
end
|
22
|
+
it "should return the set value" do
|
23
|
+
expect(subject.value).to eq(new_value)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context "when not using a default value" do
|
29
|
+
context "when no value is set" do
|
30
|
+
subject { described_class.new("number", Numeric, nil, false) }
|
31
|
+
it "should return the default value" do
|
32
|
+
expect(subject.value).to eq(nil)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
context "when a value is set" do
|
37
|
+
subject { described_class.new("number", Numeric, nil, false) }
|
38
|
+
let(:new_value) { 2 }
|
39
|
+
before :each do
|
40
|
+
subject.set(new_value)
|
41
|
+
end
|
42
|
+
it "should return the set value" do
|
43
|
+
expect(subject.value).to eq(new_value)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
describe "#set?" do
|
50
|
+
context "when there is not value set" do
|
51
|
+
subject { described_class.new("number", Numeric, 1) }
|
52
|
+
it "should return false" do
|
53
|
+
expect(subject.set?).to be(false)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
context "when there is a value set" do
|
57
|
+
subject { described_class.new("number", Numeric, 1) }
|
58
|
+
before :each do
|
59
|
+
subject.set(2)
|
60
|
+
end
|
61
|
+
it "should return false" do
|
62
|
+
expect(subject.set?).to be(true)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
describe "#set" do
|
67
|
+
subject { described_class.new("number", Numeric, 1) }
|
68
|
+
it "should change the value of a setting" do
|
69
|
+
expect(subject.value).to eq(1)
|
70
|
+
subject.set(4)
|
71
|
+
expect(subject.value).to eq(4)
|
72
|
+
end
|
73
|
+
context "when executed for the first time" do
|
74
|
+
it "should change the result of set?" do
|
75
|
+
expect(subject.set?).to eq(false)
|
76
|
+
subject.set(4)
|
77
|
+
expect(subject.set?).to eq(true)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
context "when the argument's class does not match @klass" do
|
82
|
+
it "should throw an exception" do
|
83
|
+
expect { subject.set("not a number") }.to raise_error
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
describe "#reset" do
|
89
|
+
subject { described_class.new("number", Numeric, 1) }
|
90
|
+
context "if value is already set" do
|
91
|
+
before :each do
|
92
|
+
subject.set(2)
|
93
|
+
end
|
94
|
+
it "should reset value to default" do
|
95
|
+
subject.reset
|
96
|
+
expect(subject.value).to eq(1)
|
97
|
+
end
|
98
|
+
it "should reset set? to false" do
|
99
|
+
expect(subject.set?).to eq(true)
|
100
|
+
subject.reset
|
101
|
+
expect(subject.set?).to eq(false)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
describe "validator_proc" do
|
107
|
+
let(:default_value) { "small text" }
|
108
|
+
subject { described_class.new("mytext", String, default_value) {|v| v.size < 20 } }
|
109
|
+
context "when validation fails" do
|
110
|
+
let(:new_value) { "very very very very very big text" }
|
111
|
+
it "should raise an exception" do
|
112
|
+
expect { subject.set(new_value) }.to raise_error
|
113
|
+
end
|
114
|
+
it "should not change the value" do
|
115
|
+
subject.set(new_value) rescue nil
|
116
|
+
expect(subject.value).to eq(default_value)
|
117
|
+
end
|
118
|
+
end
|
119
|
+
context "when validation is successful" do
|
120
|
+
let(:new_value) { "smaller text" }
|
121
|
+
it "should not raise an exception" do
|
122
|
+
expect { subject.set(new_value) }.to_not raise_error
|
123
|
+
end
|
124
|
+
it "should change the value" do
|
125
|
+
subject.set(new_value)
|
126
|
+
expect(subject.value).to eq(new_value)
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require "spec_helper"
|
3
|
+
require "logstash/settings"
|
4
|
+
|
5
|
+
describe LogStash::Settings do
|
6
|
+
let(:numeric_setting_name) { "number" }
|
7
|
+
let(:numeric_setting) { LogStash::Setting.new(numeric_setting_name, Numeric, 1) }
|
8
|
+
describe "#register" do
|
9
|
+
context "if setting has already been registered" do
|
10
|
+
before :each do
|
11
|
+
subject.register(numeric_setting)
|
12
|
+
end
|
13
|
+
it "should raise an exception" do
|
14
|
+
expect { subject.register(numeric_setting) }.to raise_error
|
15
|
+
end
|
16
|
+
end
|
17
|
+
context "if setting hasn't been registered" do
|
18
|
+
it "should not raise an exception" do
|
19
|
+
expect { subject.register(numeric_setting) }.to_not raise_error
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe "#get_setting" do
|
24
|
+
context "if setting has been registered" do
|
25
|
+
before :each do
|
26
|
+
subject.register(numeric_setting)
|
27
|
+
end
|
28
|
+
it "should return the setting" do
|
29
|
+
expect(subject.get_setting(numeric_setting_name)).to eq(numeric_setting)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
context "if setting hasn't been registered" do
|
33
|
+
it "should raise an exception" do
|
34
|
+
expect { subject.get_setting(numeric_setting_name) }.to raise_error
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
describe "#get_subset" do
|
39
|
+
let(:numeric_setting_1) { LogStash::Setting.new("num.1", Numeric, 1) }
|
40
|
+
let(:numeric_setting_2) { LogStash::Setting.new("num.2", Numeric, 2) }
|
41
|
+
let(:numeric_setting_3) { LogStash::Setting.new("num.3", Numeric, 3) }
|
42
|
+
let(:string_setting_1) { LogStash::Setting.new("string.1", String, "hello") }
|
43
|
+
before :each do
|
44
|
+
subject.register(numeric_setting_1)
|
45
|
+
subject.register(numeric_setting_2)
|
46
|
+
subject.register(numeric_setting_3)
|
47
|
+
subject.register(string_setting_1)
|
48
|
+
end
|
49
|
+
|
50
|
+
it "supports regex" do
|
51
|
+
expect(subject.get_subset(/num/).get_setting("num.3")).to eq(numeric_setting_3)
|
52
|
+
expect { subject.get_subset(/num/).get_setting("string.1") }.to raise_error
|
53
|
+
end
|
54
|
+
|
55
|
+
it "returns a copy of settings" do
|
56
|
+
subset = subject.get_subset(/num/)
|
57
|
+
subset.set("num.2", 1000)
|
58
|
+
expect(subject.get("num.2")).to eq(2)
|
59
|
+
expect(subset.get("num.2")).to eq(1000)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.
|
4
|
+
version: 5.0.0.alpha3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- -
|
16
|
+
- - '='
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 5.0.0.
|
18
|
+
version: 5.0.0.alpha3
|
19
19
|
name: logstash-core-event-java
|
20
20
|
prerelease: false
|
21
21
|
type: :runtime
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.0.0.
|
26
|
+
version: 5.0.0.alpha3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
@@ -148,9 +148,6 @@ dependencies:
|
|
148
148
|
- - ~>
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '2.16'
|
151
|
-
- - '>='
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: 2.16.0
|
154
151
|
name: puma
|
155
152
|
prerelease: false
|
156
153
|
type: :runtime
|
@@ -159,9 +156,6 @@ dependencies:
|
|
159
156
|
- - ~>
|
160
157
|
- !ruby/object:Gem::Version
|
161
158
|
version: '2.16'
|
162
|
-
- - '>='
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
version: 2.16.0
|
165
159
|
- !ruby/object:Gem::Dependency
|
166
160
|
requirement: !ruby/object:Gem::Requirement
|
167
161
|
requirements:
|
@@ -195,15 +189,15 @@ dependencies:
|
|
195
189
|
requirements:
|
196
190
|
- - ~>
|
197
191
|
- !ruby/object:Gem::Version
|
198
|
-
version: 0.
|
199
|
-
name:
|
192
|
+
version: 0.4.2
|
193
|
+
name: jrmonitor
|
200
194
|
prerelease: false
|
201
195
|
type: :runtime
|
202
196
|
version_requirements: !ruby/object:Gem::Requirement
|
203
197
|
requirements:
|
204
198
|
- - ~>
|
205
199
|
- !ruby/object:Gem::Version
|
206
|
-
version: 0.
|
200
|
+
version: 0.4.2
|
207
201
|
- !ruby/object:Gem::Dependency
|
208
202
|
requirement: !ruby/object:Gem::Requirement
|
209
203
|
requirements:
|
@@ -299,23 +293,20 @@ files:
|
|
299
293
|
- lib/logstash-core/logstash-core.rb
|
300
294
|
- lib/logstash-core/version.rb
|
301
295
|
- lib/logstash/agent.rb
|
302
|
-
- lib/logstash/api/
|
303
|
-
- lib/logstash/api/
|
304
|
-
- lib/logstash/api/
|
305
|
-
- lib/logstash/api/
|
306
|
-
- lib/logstash/api/
|
307
|
-
- lib/logstash/api/
|
308
|
-
- lib/logstash/api/
|
309
|
-
- lib/logstash/api/
|
310
|
-
- lib/logstash/api/
|
311
|
-
- lib/logstash/api/
|
312
|
-
- lib/logstash/api/
|
313
|
-
- lib/logstash/api/
|
314
|
-
- lib/logstash/api/
|
315
|
-
- lib/logstash/api/
|
316
|
-
- lib/logstash/api/lib/app/service.rb
|
317
|
-
- lib/logstash/api/lib/app/stats.rb
|
318
|
-
- lib/logstash/api/lib/helpers/app_helpers.rb
|
296
|
+
- lib/logstash/api/app_helpers.rb
|
297
|
+
- lib/logstash/api/command_factory.rb
|
298
|
+
- lib/logstash/api/commands/base.rb
|
299
|
+
- lib/logstash/api/commands/stats.rb
|
300
|
+
- lib/logstash/api/commands/system/basicinfo_command.rb
|
301
|
+
- lib/logstash/api/commands/system/plugins_command.rb
|
302
|
+
- lib/logstash/api/modules/base.rb
|
303
|
+
- lib/logstash/api/modules/node.rb
|
304
|
+
- lib/logstash/api/modules/node_stats.rb
|
305
|
+
- lib/logstash/api/modules/plugins.rb
|
306
|
+
- lib/logstash/api/modules/root.rb
|
307
|
+
- lib/logstash/api/modules/stats.rb
|
308
|
+
- lib/logstash/api/rack_app.rb
|
309
|
+
- lib/logstash/api/service.rb
|
319
310
|
- lib/logstash/codecs/base.rb
|
320
311
|
- lib/logstash/config/config_ast.rb
|
321
312
|
- lib/logstash/config/cpu_core_strategy.rb
|
@@ -351,12 +342,14 @@ files:
|
|
351
342
|
- lib/logstash/java_integration.rb
|
352
343
|
- lib/logstash/json.rb
|
353
344
|
- lib/logstash/logging.rb
|
345
|
+
- lib/logstash/logging/json.rb
|
354
346
|
- lib/logstash/namespace.rb
|
355
347
|
- lib/logstash/output_delegator.rb
|
356
348
|
- lib/logstash/outputs/base.rb
|
357
349
|
- lib/logstash/patches.rb
|
358
350
|
- lib/logstash/patches/bugfix_jruby_2558.rb
|
359
351
|
- lib/logstash/patches/cabin.rb
|
352
|
+
- lib/logstash/patches/clamp.rb
|
360
353
|
- lib/logstash/patches/profile_require_calls.rb
|
361
354
|
- lib/logstash/patches/rubygems.rb
|
362
355
|
- lib/logstash/patches/stronger_openssl_defaults.rb
|
@@ -366,12 +359,12 @@ files:
|
|
366
359
|
- lib/logstash/plugins/registry.rb
|
367
360
|
- lib/logstash/program.rb
|
368
361
|
- lib/logstash/runner.rb
|
362
|
+
- lib/logstash/settings.rb
|
369
363
|
- lib/logstash/shutdown_watcher.rb
|
370
364
|
- lib/logstash/util.rb
|
371
365
|
- lib/logstash/util/buftok.rb
|
372
366
|
- lib/logstash/util/charset.rb
|
373
367
|
- lib/logstash/util/decorators.rb
|
374
|
-
- lib/logstash/util/defaults_printer.rb
|
375
368
|
- lib/logstash/util/duration_formatter.rb
|
376
369
|
- lib/logstash/util/filetools.rb
|
377
370
|
- lib/logstash/util/java_version.rb
|
@@ -381,6 +374,7 @@ files:
|
|
381
374
|
- lib/logstash/util/prctl.rb
|
382
375
|
- lib/logstash/util/retryable.rb
|
383
376
|
- lib/logstash/util/socket_peer.rb
|
377
|
+
- lib/logstash/util/thread_dump.rb
|
384
378
|
- lib/logstash/util/unicode_trimmer.rb
|
385
379
|
- lib/logstash/util/worker_threads_default_printer.rb
|
386
380
|
- lib/logstash/util/wrapped_synchronous_queue.rb
|
@@ -392,9 +386,8 @@ files:
|
|
392
386
|
- spec/api/lib/api/node_stats_spec.rb
|
393
387
|
- spec/api/lib/api/plugins_spec.rb
|
394
388
|
- spec/api/lib/api/root_spec.rb
|
395
|
-
- spec/api/lib/api/
|
396
|
-
- spec/api/lib/commands/
|
397
|
-
- spec/api/lib/commands/jvm_spec.rb
|
389
|
+
- spec/api/lib/api/support/resource_dsl_methods.rb
|
390
|
+
- spec/api/lib/commands/stats.rb
|
398
391
|
- spec/api/spec_helper.rb
|
399
392
|
- spec/conditionals_spec.rb
|
400
393
|
- spec/logstash/agent_spec.rb
|
@@ -415,6 +408,7 @@ files:
|
|
415
408
|
- spec/logstash/instrument/metric_type/gauge_spec.rb
|
416
409
|
- spec/logstash/instrument/namespaced_metric_spec.rb
|
417
410
|
- spec/logstash/instrument/null_metric_spec.rb
|
411
|
+
- spec/logstash/instrument/periodic_poller/jvm_spec.rb
|
418
412
|
- spec/logstash/java_integration_spec.rb
|
419
413
|
- spec/logstash/json_spec.rb
|
420
414
|
- spec/logstash/output_delegator_spec.rb
|
@@ -425,15 +419,15 @@ files:
|
|
425
419
|
- spec/logstash/plugin_spec.rb
|
426
420
|
- spec/logstash/plugins/registry_spec.rb
|
427
421
|
- spec/logstash/runner_spec.rb
|
422
|
+
- spec/logstash/setting_spec.rb
|
423
|
+
- spec/logstash/settings_spec.rb
|
428
424
|
- spec/logstash/shutdown_watcher_spec.rb
|
429
425
|
- spec/logstash/util/buftok_spec.rb
|
430
426
|
- spec/logstash/util/charset_spec.rb
|
431
|
-
- spec/logstash/util/defaults_printer_spec.rb
|
432
427
|
- spec/logstash/util/duration_formatter_spec.rb
|
433
428
|
- spec/logstash/util/java_version_spec.rb
|
434
429
|
- spec/logstash/util/plugin_version_spec.rb
|
435
430
|
- spec/logstash/util/unicode_trimmer_spec.rb
|
436
|
-
- spec/logstash/util/worker_threads_default_printer_spec.rb
|
437
431
|
- spec/logstash/util/wrapped_synchronous_queue_spec.rb
|
438
432
|
- spec/logstash/util_spec.rb
|
439
433
|
- spec/static/i18n_spec.rb
|
@@ -468,9 +462,8 @@ test_files:
|
|
468
462
|
- spec/api/lib/api/node_stats_spec.rb
|
469
463
|
- spec/api/lib/api/plugins_spec.rb
|
470
464
|
- spec/api/lib/api/root_spec.rb
|
471
|
-
- spec/api/lib/api/
|
472
|
-
- spec/api/lib/commands/
|
473
|
-
- spec/api/lib/commands/jvm_spec.rb
|
465
|
+
- spec/api/lib/api/support/resource_dsl_methods.rb
|
466
|
+
- spec/api/lib/commands/stats.rb
|
474
467
|
- spec/api/spec_helper.rb
|
475
468
|
- spec/conditionals_spec.rb
|
476
469
|
- spec/logstash/agent_spec.rb
|
@@ -491,6 +484,7 @@ test_files:
|
|
491
484
|
- spec/logstash/instrument/metric_type/gauge_spec.rb
|
492
485
|
- spec/logstash/instrument/namespaced_metric_spec.rb
|
493
486
|
- spec/logstash/instrument/null_metric_spec.rb
|
487
|
+
- spec/logstash/instrument/periodic_poller/jvm_spec.rb
|
494
488
|
- spec/logstash/java_integration_spec.rb
|
495
489
|
- spec/logstash/json_spec.rb
|
496
490
|
- spec/logstash/output_delegator_spec.rb
|
@@ -501,15 +495,15 @@ test_files:
|
|
501
495
|
- spec/logstash/plugin_spec.rb
|
502
496
|
- spec/logstash/plugins/registry_spec.rb
|
503
497
|
- spec/logstash/runner_spec.rb
|
498
|
+
- spec/logstash/setting_spec.rb
|
499
|
+
- spec/logstash/settings_spec.rb
|
504
500
|
- spec/logstash/shutdown_watcher_spec.rb
|
505
501
|
- spec/logstash/util/buftok_spec.rb
|
506
502
|
- spec/logstash/util/charset_spec.rb
|
507
|
-
- spec/logstash/util/defaults_printer_spec.rb
|
508
503
|
- spec/logstash/util/duration_formatter_spec.rb
|
509
504
|
- spec/logstash/util/java_version_spec.rb
|
510
505
|
- spec/logstash/util/plugin_version_spec.rb
|
511
506
|
- spec/logstash/util/unicode_trimmer_spec.rb
|
512
|
-
- spec/logstash/util/worker_threads_default_printer_spec.rb
|
513
507
|
- spec/logstash/util/wrapped_synchronous_queue_spec.rb
|
514
508
|
- spec/logstash/util_spec.rb
|
515
509
|
- spec/static/i18n_spec.rb
|