logstash-core 5.0.0.alpha4.snapshot1-java → 5.0.0.alpha4.snapshot2-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 +31 -36
- data/lib/logstash/api/command_factory.rb +3 -1
- data/lib/logstash/api/commands/base.rb +4 -0
- data/lib/logstash/api/commands/node.rb +116 -0
- data/lib/logstash/api/commands/stats.rb +28 -77
- data/lib/logstash/api/modules/base.rb +2 -2
- data/lib/logstash/api/modules/node.rb +23 -6
- data/lib/logstash/api/modules/node_stats.rb +15 -1
- data/lib/logstash/api/rack_app.rb +9 -6
- data/lib/logstash/api/service.rb +8 -47
- data/lib/logstash/config/config_ast.rb +11 -3
- data/lib/logstash/config/mixin.rb +60 -22
- data/lib/logstash/inputs/metrics.rb +2 -2
- data/lib/logstash/instrument/collector.rb +5 -6
- data/lib/logstash/instrument/metric.rb +1 -1
- data/lib/logstash/instrument/metric_store.rb +54 -0
- data/lib/logstash/pipeline.rb +10 -4
- data/lib/logstash/runner.rb +2 -2
- data/lib/logstash/util/safe_uri.rb +48 -0
- data/lib/logstash/version.rb +1 -1
- data/lib/logstash/webserver.rb +8 -7
- data/logstash-core.gemspec +1 -1
- data/spec/api/lib/api/node_plugins_spec.rb +32 -0
- data/spec/api/lib/api/node_spec.rb +41 -7
- data/spec/api/lib/api/node_stats_spec.rb +31 -6
- data/spec/api/lib/api/plugins_spec.rb +1 -7
- data/spec/api/lib/api/root_spec.rb +2 -7
- data/spec/api/lib/api/support/resource_dsl_methods.rb +14 -7
- data/spec/api/spec_helper.rb +24 -50
- data/spec/logstash/agent_spec.rb +36 -13
- data/spec/logstash/config/config_ast_spec.rb +43 -0
- data/spec/logstash/config/mixin_spec.rb +138 -0
- data/spec/logstash/inputs/metrics_spec.rb +10 -11
- data/spec/logstash/instrument/collector_spec.rb +1 -1
- data/spec/logstash/instrument/metric_store_spec.rb +61 -0
- data/spec/logstash/instrument/periodic_poller/jvm_spec.rb +6 -3
- data/spec/logstash/pipeline_spec.rb +9 -9
- data/spec/support/mocks_classes.rb +2 -1
- metadata +39 -35
@@ -1,5 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require "logstash/outputs/base"
|
3
|
+
require "thread"
|
3
4
|
|
4
5
|
class DummyOutput < LogStash::Outputs::Base
|
5
6
|
config_name "dummyoutput"
|
@@ -10,7 +11,7 @@ class DummyOutput < LogStash::Outputs::Base
|
|
10
11
|
def initialize(params={})
|
11
12
|
super
|
12
13
|
@num_closes = 0
|
13
|
-
@events =
|
14
|
+
@events = Queue.new
|
14
15
|
end
|
15
16
|
|
16
17
|
def register
|
metadata
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.alpha4.
|
4
|
+
version: 5.0.0.alpha4.snapshot2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-15 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.alpha4.
|
18
|
+
version: 5.0.0.alpha4.snapshot2
|
19
19
|
name: logstash-core-event-java
|
20
20
|
prerelease: false
|
21
21
|
type: :runtime
|
@@ -23,11 +23,11 @@ dependencies:
|
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.0.0.alpha4.
|
26
|
+
version: 5.0.0.alpha4.snapshot2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
|
-
- - ~>
|
30
|
+
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 0.8.0
|
33
33
|
name: cabin
|
@@ -35,13 +35,13 @@ dependencies:
|
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.8.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - ~>
|
44
|
+
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 0.10.1
|
47
47
|
name: pry
|
@@ -49,13 +49,13 @@ dependencies:
|
|
49
49
|
type: :runtime
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.10.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - ~>
|
58
|
+
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: 0.0.19
|
61
61
|
name: stud
|
@@ -63,13 +63,13 @@ dependencies:
|
|
63
63
|
type: :runtime
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.0.19
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - ~>
|
72
|
+
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: 0.6.5
|
75
75
|
name: clamp
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
type: :runtime
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.6.5
|
83
83
|
- !ruby/object:Gem::Dependency
|
@@ -97,7 +97,7 @@ dependencies:
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- - ~>
|
100
|
+
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: 0.8.3
|
103
103
|
name: gems
|
@@ -105,7 +105,7 @@ dependencies:
|
|
105
105
|
type: :runtime
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 0.8.3
|
111
111
|
- !ruby/object:Gem::Dependency
|
@@ -125,10 +125,10 @@ dependencies:
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
requirement: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
|
-
- - ~>
|
128
|
+
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '1.4'
|
131
|
-
- -
|
131
|
+
- - ">="
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: 1.4.6
|
134
134
|
name: sinatra
|
@@ -136,16 +136,16 @@ dependencies:
|
|
136
136
|
type: :runtime
|
137
137
|
version_requirements: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
|
-
- - ~>
|
139
|
+
- - "~>"
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '1.4'
|
142
|
-
- -
|
142
|
+
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: 1.4.6
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
requirement: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
|
-
- - ~>
|
148
|
+
- - "~>"
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '2.16'
|
151
151
|
name: puma
|
@@ -153,7 +153,7 @@ dependencies:
|
|
153
153
|
type: :runtime
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
|
-
- - ~>
|
156
|
+
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: '2.16'
|
159
159
|
- !ruby/object:Gem::Dependency
|
@@ -187,7 +187,7 @@ dependencies:
|
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
requirement: !ruby/object:Gem::Requirement
|
189
189
|
requirements:
|
190
|
-
- - ~>
|
190
|
+
- - "~>"
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: 0.4.2
|
193
193
|
name: jrmonitor
|
@@ -195,13 +195,13 @@ dependencies:
|
|
195
195
|
type: :runtime
|
196
196
|
version_requirements: !ruby/object:Gem::Requirement
|
197
197
|
requirements:
|
198
|
-
- - ~>
|
198
|
+
- - "~>"
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: 0.4.2
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
202
|
requirement: !ruby/object:Gem::Requirement
|
203
203
|
requirements:
|
204
|
-
- - <
|
204
|
+
- - "<"
|
205
205
|
- !ruby/object:Gem::Version
|
206
206
|
version: 1.5.0
|
207
207
|
name: treetop
|
@@ -209,7 +209,7 @@ dependencies:
|
|
209
209
|
type: :runtime
|
210
210
|
version_requirements: !ruby/object:Gem::Requirement
|
211
211
|
requirements:
|
212
|
-
- - <
|
212
|
+
- - "<"
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: 1.5.0
|
215
215
|
- !ruby/object:Gem::Dependency
|
@@ -229,7 +229,7 @@ dependencies:
|
|
229
229
|
- !ruby/object:Gem::Dependency
|
230
230
|
requirement: !ruby/object:Gem::Requirement
|
231
231
|
requirements:
|
232
|
-
- - ~>
|
232
|
+
- - "~>"
|
233
233
|
- !ruby/object:Gem::Version
|
234
234
|
version: 0.5.4
|
235
235
|
name: minitar
|
@@ -237,13 +237,13 @@ dependencies:
|
|
237
237
|
type: :runtime
|
238
238
|
version_requirements: !ruby/object:Gem::Requirement
|
239
239
|
requirements:
|
240
|
-
- - ~>
|
240
|
+
- - "~>"
|
241
241
|
- !ruby/object:Gem::Version
|
242
242
|
version: 0.5.4
|
243
243
|
- !ruby/object:Gem::Dependency
|
244
244
|
requirement: !ruby/object:Gem::Requirement
|
245
245
|
requirements:
|
246
|
-
- - ~>
|
246
|
+
- - "~>"
|
247
247
|
- !ruby/object:Gem::Version
|
248
248
|
version: 1.1.7
|
249
249
|
name: rubyzip
|
@@ -251,13 +251,13 @@ dependencies:
|
|
251
251
|
type: :runtime
|
252
252
|
version_requirements: !ruby/object:Gem::Requirement
|
253
253
|
requirements:
|
254
|
-
- - ~>
|
254
|
+
- - "~>"
|
255
255
|
- !ruby/object:Gem::Version
|
256
256
|
version: 1.1.7
|
257
257
|
- !ruby/object:Gem::Dependency
|
258
258
|
requirement: !ruby/object:Gem::Requirement
|
259
259
|
requirements:
|
260
|
-
- - ~>
|
260
|
+
- - "~>"
|
261
261
|
- !ruby/object:Gem::Version
|
262
262
|
version: 0.3.5
|
263
263
|
name: thread_safe
|
@@ -265,13 +265,13 @@ dependencies:
|
|
265
265
|
type: :runtime
|
266
266
|
version_requirements: !ruby/object:Gem::Requirement
|
267
267
|
requirements:
|
268
|
-
- - ~>
|
268
|
+
- - "~>"
|
269
269
|
- !ruby/object:Gem::Version
|
270
270
|
version: 0.3.5
|
271
271
|
- !ruby/object:Gem::Dependency
|
272
272
|
requirement: !ruby/object:Gem::Requirement
|
273
273
|
requirements:
|
274
|
-
- - ~>
|
274
|
+
- - "~>"
|
275
275
|
- !ruby/object:Gem::Version
|
276
276
|
version: 0.3.7
|
277
277
|
name: jrjackson
|
@@ -279,7 +279,7 @@ dependencies:
|
|
279
279
|
type: :runtime
|
280
280
|
version_requirements: !ruby/object:Gem::Requirement
|
281
281
|
requirements:
|
282
|
-
- - ~>
|
282
|
+
- - "~>"
|
283
283
|
- !ruby/object:Gem::Version
|
284
284
|
version: 0.3.7
|
285
285
|
description: The core components of logstash, the scalable log and event management tool
|
@@ -296,6 +296,7 @@ files:
|
|
296
296
|
- lib/logstash/api/app_helpers.rb
|
297
297
|
- lib/logstash/api/command_factory.rb
|
298
298
|
- lib/logstash/api/commands/base.rb
|
299
|
+
- lib/logstash/api/commands/node.rb
|
299
300
|
- lib/logstash/api/commands/stats.rb
|
300
301
|
- lib/logstash/api/commands/system/basicinfo_command.rb
|
301
302
|
- lib/logstash/api/commands/system/plugins_command.rb
|
@@ -373,6 +374,7 @@ files:
|
|
373
374
|
- lib/logstash/util/plugin_version.rb
|
374
375
|
- lib/logstash/util/prctl.rb
|
375
376
|
- lib/logstash/util/retryable.rb
|
377
|
+
- lib/logstash/util/safe_uri.rb
|
376
378
|
- lib/logstash/util/socket_peer.rb
|
377
379
|
- lib/logstash/util/thread_dump.rb
|
378
380
|
- lib/logstash/util/unicode_trimmer.rb
|
@@ -382,6 +384,7 @@ files:
|
|
382
384
|
- lib/logstash/webserver.rb
|
383
385
|
- locales/en.yml
|
384
386
|
- logstash-core.gemspec
|
387
|
+
- spec/api/lib/api/node_plugins_spec.rb
|
385
388
|
- spec/api/lib/api/node_spec.rb
|
386
389
|
- spec/api/lib/api/node_stats_spec.rb
|
387
390
|
- spec/api/lib/api/plugins_spec.rb
|
@@ -444,21 +447,22 @@ require_paths:
|
|
444
447
|
- lib
|
445
448
|
required_ruby_version: !ruby/object:Gem::Requirement
|
446
449
|
requirements:
|
447
|
-
- -
|
450
|
+
- - ">="
|
448
451
|
- !ruby/object:Gem::Version
|
449
452
|
version: '0'
|
450
453
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
451
454
|
requirements:
|
452
|
-
- -
|
455
|
+
- - ">"
|
453
456
|
- !ruby/object:Gem::Version
|
454
457
|
version: 1.3.1
|
455
458
|
requirements: []
|
456
459
|
rubyforge_project:
|
457
|
-
rubygems_version: 2.4.
|
460
|
+
rubygems_version: 2.4.8
|
458
461
|
signing_key:
|
459
462
|
specification_version: 4
|
460
463
|
summary: logstash-core - The core components of logstash
|
461
464
|
test_files:
|
465
|
+
- spec/api/lib/api/node_plugins_spec.rb
|
462
466
|
- spec/api/lib/api/node_spec.rb
|
463
467
|
- spec/api/lib/api/node_stats_spec.rb
|
464
468
|
- spec/api/lib/api/plugins_spec.rb
|