logstash-core 6.0.0.alpha2-java → 6.0.0.beta1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +5 -5
  2. data/gemspec_jars.rb +6 -4
  3. data/lib/logstash-core/logstash-core.jar +0 -0
  4. data/lib/logstash-core/logstash-core.rb +2 -2
  5. data/lib/logstash-core/version.rb +1 -1
  6. data/lib/logstash-core_jars.rb +14 -10
  7. data/lib/logstash/agent.rb +4 -2
  8. data/lib/logstash/api/commands/default_metadata.rb +1 -1
  9. data/lib/logstash/api/commands/hot_threads_reporter.rb +8 -2
  10. data/lib/logstash/api/commands/node.rb +2 -2
  11. data/lib/logstash/api/commands/stats.rb +2 -2
  12. data/lib/logstash/bootstrap_check/bad_ruby.rb +2 -2
  13. data/lib/logstash/bootstrap_check/default_config.rb +2 -3
  14. data/lib/logstash/compiler.rb +12 -12
  15. data/lib/logstash/compiler/lscl.rb +17 -7
  16. data/lib/logstash/compiler/treetop_monkeypatches.rb +1 -0
  17. data/lib/logstash/config/config_ast.rb +11 -1
  18. data/lib/logstash/config/mixin.rb +5 -0
  19. data/lib/logstash/config/modules_common.rb +101 -0
  20. data/lib/logstash/config/source/base.rb +75 -0
  21. data/lib/logstash/config/source/local.rb +52 -50
  22. data/lib/logstash/config/source/modules.rb +55 -0
  23. data/lib/logstash/config/source/multi_local.rb +54 -10
  24. data/lib/logstash/config/source_loader.rb +1 -0
  25. data/lib/logstash/config/string_escape.rb +27 -0
  26. data/lib/logstash/elasticsearch_client.rb +142 -0
  27. data/lib/logstash/environment.rb +5 -1
  28. data/lib/logstash/event.rb +0 -1
  29. data/lib/logstash/instrument/global_metrics.rb +13 -0
  30. data/lib/logstash/instrument/metric_store.rb +16 -13
  31. data/lib/logstash/instrument/metric_type/counter.rb +6 -18
  32. data/lib/logstash/instrument/metric_type/gauge.rb +6 -12
  33. data/lib/logstash/instrument/periodic_poller/dlq.rb +19 -0
  34. data/lib/logstash/instrument/periodic_pollers.rb +3 -1
  35. data/lib/logstash/logging/logger.rb +43 -14
  36. data/lib/logstash/modules/cli_parser.rb +74 -0
  37. data/lib/logstash/modules/elasticsearch_config.rb +22 -0
  38. data/lib/logstash/modules/elasticsearch_importer.rb +37 -0
  39. data/lib/logstash/modules/elasticsearch_resource.rb +10 -0
  40. data/lib/logstash/modules/file_reader.rb +36 -0
  41. data/lib/logstash/modules/kibana_base.rb +24 -0
  42. data/lib/logstash/modules/kibana_client.rb +122 -0
  43. data/lib/logstash/modules/kibana_config.rb +125 -0
  44. data/lib/logstash/modules/kibana_dashboards.rb +36 -0
  45. data/lib/logstash/modules/kibana_importer.rb +17 -0
  46. data/lib/logstash/modules/kibana_resource.rb +10 -0
  47. data/lib/logstash/modules/kibana_settings.rb +40 -0
  48. data/lib/logstash/modules/logstash_config.rb +120 -0
  49. data/lib/logstash/modules/resource_base.rb +38 -0
  50. data/lib/logstash/modules/scaffold.rb +50 -0
  51. data/lib/logstash/modules/settings_merger.rb +23 -0
  52. data/lib/logstash/modules/util.rb +17 -0
  53. data/lib/logstash/namespace.rb +1 -0
  54. data/lib/logstash/pipeline.rb +66 -27
  55. data/lib/logstash/pipeline_settings.rb +1 -0
  56. data/lib/logstash/plugins/registry.rb +1 -0
  57. data/lib/logstash/runner.rb +47 -3
  58. data/lib/logstash/settings.rb +20 -1
  59. data/lib/logstash/util/dead_letter_queue_manager.rb +1 -1
  60. data/lib/logstash/util/safe_uri.rb +146 -11
  61. data/lib/logstash/util/thread_dump.rb +4 -3
  62. data/lib/logstash/util/wrapped_acked_queue.rb +28 -24
  63. data/lib/logstash/util/wrapped_synchronous_queue.rb +19 -20
  64. data/lib/logstash/version.rb +1 -1
  65. data/locales/en.yml +56 -1
  66. data/logstash-core.gemspec +6 -4
  67. data/spec/logstash/agent/converge_spec.rb +2 -2
  68. data/spec/logstash/agent_spec.rb +11 -3
  69. data/spec/logstash/api/modules/logging_spec.rb +13 -7
  70. data/spec/logstash/api/modules/node_plugins_spec.rb +23 -5
  71. data/spec/logstash/api/modules/node_spec.rb +17 -15
  72. data/spec/logstash/api/modules/node_stats_spec.rb +0 -1
  73. data/spec/logstash/api/modules/plugins_spec.rb +40 -9
  74. data/spec/logstash/api/modules/root_spec.rb +0 -1
  75. data/spec/logstash/api/rack_app_spec.rb +2 -1
  76. data/spec/logstash/compiler/compiler_spec.rb +54 -7
  77. data/spec/logstash/config/config_ast_spec.rb +47 -8
  78. data/spec/logstash/config/mixin_spec.rb +14 -2
  79. data/spec/logstash/config/pipeline_config_spec.rb +7 -7
  80. data/spec/logstash/config/source/local_spec.rb +5 -2
  81. data/spec/logstash/config/source/multi_local_spec.rb +56 -10
  82. data/spec/logstash/config/source_loader_spec.rb +1 -1
  83. data/spec/logstash/config/string_escape_spec.rb +24 -0
  84. data/spec/logstash/event_spec.rb +9 -0
  85. data/spec/logstash/filters/base_spec.rb +1 -1
  86. data/spec/logstash/instrument/metric_store_spec.rb +2 -3
  87. data/spec/logstash/instrument/metric_type/counter_spec.rb +0 -12
  88. data/spec/logstash/instrument/metric_type/gauge_spec.rb +1 -8
  89. data/spec/logstash/instrument/periodic_poller/dlq_spec.rb +17 -0
  90. data/spec/logstash/instrument/periodic_poller/jvm_spec.rb +1 -1
  91. data/spec/logstash/legacy_ruby_event_spec.rb +0 -9
  92. data/spec/logstash/legacy_ruby_timestamp_spec.rb +19 -14
  93. data/spec/logstash/modules/cli_parser_spec.rb +129 -0
  94. data/spec/logstash/modules/logstash_config_spec.rb +56 -0
  95. data/spec/logstash/modules/scaffold_spec.rb +239 -0
  96. data/spec/logstash/pipeline_dlq_commit_spec.rb +1 -1
  97. data/spec/logstash/pipeline_spec.rb +87 -20
  98. data/spec/logstash/runner_spec.rb +122 -5
  99. data/spec/logstash/setting_spec.rb +2 -2
  100. data/spec/logstash/settings/splittable_string_array_spec.rb +51 -0
  101. data/spec/logstash/timestamp_spec.rb +8 -2
  102. data/spec/logstash/util/safe_uri_spec.rb +16 -0
  103. data/spec/logstash/util/wrapped_acked_queue_spec.rb +63 -0
  104. data/spec/logstash/util/wrapped_synchronous_queue_spec.rb +0 -22
  105. data/spec/support/helpers.rb +1 -1
  106. data/spec/support/matchers.rb +21 -4
  107. metadata +102 -19
  108. data/lib/logstash/instrument/metric_type/base.rb +0 -31
  109. data/lib/logstash/program.rb +0 -14
  110. data/lib/logstash/string_interpolation.rb +0 -18
@@ -0,0 +1,63 @@
1
+ # encoding: utf-8
2
+ require "spec_helper"
3
+ require "logstash/util/wrapped_acked_queue"
4
+
5
+ describe LogStash::Util::WrappedAckedQueue do
6
+ shared_examples "queue tests" do
7
+ it "is_empty? on creation" do
8
+ expect(queue.is_empty?).to be_truthy
9
+ end
10
+
11
+ it "not is_empty? after pushing an element" do
12
+ queue.push(LogStash::Event.new)
13
+ expect(queue.is_empty?).to be_falsey
14
+ end
15
+
16
+ it "not is_empty? when all elements are not acked" do
17
+ queue.push(LogStash::Event.new)
18
+ batch = queue.read_batch(1, 250)
19
+ expect(batch.get_elements.size).to eq(1)
20
+ expect(queue.is_empty?).to be_falsey
21
+ end
22
+
23
+ it "is_empty? when all elements are acked" do
24
+ queue.push(LogStash::Event.new)
25
+ batch = queue.read_batch(1, 250)
26
+ expect(batch.get_elements.size).to eq(1)
27
+ expect(queue.is_empty?).to be_falsey
28
+ batch.close
29
+ expect(queue.is_empty?).to be_truthy
30
+ end
31
+ end
32
+
33
+ context "memory" do
34
+ let(:page_capacity) { 1024 }
35
+ let(:max_events) { 0 }
36
+ let(:max_bytes) { 0 }
37
+ let(:path) { Stud::Temporary.directory }
38
+ let(:queue) { LogStash::Util::WrappedAckedQueue.create_memory_based(path, page_capacity, max_events, max_bytes) }
39
+
40
+ after do
41
+ queue.close
42
+ end
43
+
44
+ include_examples "queue tests"
45
+ end
46
+
47
+ context "persisted" do
48
+ let(:page_capacity) { 1024 }
49
+ let(:max_events) { 0 }
50
+ let(:max_bytes) { 0 }
51
+ let(:checkpoint_acks) { 1024 }
52
+ let(:checkpoint_writes) { 1024 }
53
+ let(:checkpoint_interval) { 0 }
54
+ let(:path) { Stud::Temporary.directory }
55
+ let(:queue) { LogStash::Util::WrappedAckedQueue.create_file_based(path, page_capacity, max_events, checkpoint_acks, checkpoint_writes, checkpoint_interval, max_bytes) }
56
+
57
+ after do
58
+ queue.close
59
+ end
60
+
61
+ include_examples "queue tests"
62
+ end
63
+ end
@@ -4,28 +4,6 @@ require "logstash/util/wrapped_synchronous_queue"
4
4
  require "logstash/instrument/collector"
5
5
 
6
6
  describe LogStash::Util::WrappedSynchronousQueue do
7
- context "#offer" do
8
- context "queue is blocked" do
9
- it "fails and give feedback" do
10
- expect(subject.offer("Bonjour", 2)).to be_falsey
11
- end
12
- end
13
-
14
- context "queue is not blocked" do
15
- before do
16
- @consumer = Thread.new { loop { subject.take } }
17
- sleep(0.1)
18
- end
19
-
20
- after do
21
- @consumer.kill
22
- end
23
-
24
- it "inserts successfully" do
25
- expect(subject.offer("Bonjour", 20)).to be_truthy
26
- end
27
- end
28
- end
29
7
 
30
8
  describe "queue clients" do
31
9
  context "when requesting a write client" do
@@ -63,7 +63,7 @@ def mock_pipeline_config(pipeline_id, config_string = nil, settings = {})
63
63
  settings = mock_settings(settings)
64
64
  end
65
65
 
66
- config_part = org.logstash.common.SourceWithMetadata.new("config_string", "config_string", config_string)
66
+ config_part = org.logstash.common.SourceWithMetadata.new("config_string", "config_string", 0, 0, config_string)
67
67
 
68
68
  LogStash::Config::PipelineConfig.new(LogStash::Config::Source::Local, pipeline_id, config_part, settings)
69
69
  end
@@ -2,6 +2,7 @@
2
2
  require "rspec"
3
3
  require "rspec/expectations"
4
4
  require "logstash/config/pipeline_config"
5
+ require "stud/try"
5
6
 
6
7
  RSpec::Matchers.define :be_a_metric_event do |namespace, type, *args|
7
8
  match do
@@ -63,10 +64,12 @@ end
63
64
 
64
65
  RSpec::Matchers.define :have_running_pipeline? do |pipeline_config|
65
66
  match do |agent|
66
- pipeline = agent.get_pipeline(pipeline_config.pipeline_id)
67
- expect(pipeline).to_not be_nil
68
- expect(pipeline.config_str).to eq(pipeline_config.config_string)
69
- expect(pipeline.running?).to be_truthy
67
+ Stud.try(10.times, [StandardError, RSpec::Expectations::ExpectationNotMetError]) do
68
+ pipeline = agent.get_pipeline(pipeline_config.pipeline_id)
69
+ expect(pipeline).to_not be_nil
70
+ expect(pipeline.config_str).to eq(pipeline_config.config_string)
71
+ expect(pipeline.running?).to be_truthy
72
+ end
70
73
  end
71
74
 
72
75
  failure_message do |agent|
@@ -131,3 +134,17 @@ RSpec::Matchers.define :be_a_source_with_metadata do |protocol, id, text = nil|
131
134
  expect(actual.text).to match(text) unless text.nil?
132
135
  end
133
136
  end
137
+
138
+ RSpec::Matchers.define :be_a_config_loading_error_hash do |regex|
139
+ match do |hash|
140
+ expect(hash).to include(:error)
141
+ error = hash[:error]
142
+ expect(error).to be_a(LogStash::ConfigLoadingError)
143
+ expect(error.message).to match(regex)
144
+ end
145
+
146
+ match_when_negated do
147
+ raise "Not implemented"
148
+ end
149
+ end
150
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0.alpha2
4
+ version: 6.0.0.beta1
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-01 00:00:00.000000000 Z
11
+ date: 2017-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -83,17 +83,23 @@ dependencies:
83
83
  - !ruby/object:Gem::Dependency
84
84
  requirement: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - '='
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: 1.0.0
88
+ version: '1.0'
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: 1.0.5
89
92
  name: concurrent-ruby
90
93
  prerelease: false
91
94
  type: :runtime
92
95
  version_requirements: !ruby/object:Gem::Requirement
93
96
  requirements:
94
- - - '='
97
+ - - "~>"
95
98
  - !ruby/object:Gem::Version
96
- version: 1.0.0
99
+ version: '1.0'
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 1.0.5
97
103
  - !ruby/object:Gem::Dependency
98
104
  requirement: !ruby/object:Gem::Requirement
99
105
  requirements:
@@ -147,7 +153,7 @@ dependencies:
147
153
  requirements:
148
154
  - - '='
149
155
  - !ruby/object:Gem::Version
150
- version: 0.9.16
156
+ version: 0.9.20
151
157
  name: jruby-openssl
152
158
  prerelease: false
153
159
  type: :runtime
@@ -155,7 +161,7 @@ dependencies:
155
161
  requirements:
156
162
  - - '='
157
163
  - !ruby/object:Gem::Version
158
- version: 0.9.16
164
+ version: 0.9.20
159
165
  - !ruby/object:Gem::Dependency
160
166
  requirement: !ruby/object:Gem::Requirement
161
167
  requirements:
@@ -217,7 +223,7 @@ dependencies:
217
223
  requirements:
218
224
  - - "~>"
219
225
  - !ruby/object:Gem::Version
220
- version: 1.1.7
226
+ version: 1.2.1
221
227
  name: rubyzip
222
228
  prerelease: false
223
229
  type: :runtime
@@ -225,7 +231,7 @@ dependencies:
225
231
  requirements:
226
232
  - - "~>"
227
233
  - !ruby/object:Gem::Version
228
- version: 1.1.7
234
+ version: 1.2.1
229
235
  - !ruby/object:Gem::Dependency
230
236
  requirement: !ruby/object:Gem::Requirement
231
237
  requirements:
@@ -282,7 +288,48 @@ dependencies:
282
288
  - - "~>"
283
289
  - !ruby/object:Gem::Version
284
290
  version: 3.3.9
285
- description: The core components of logstash, the scalable log and event management tool
291
+ - !ruby/object:Gem::Dependency
292
+ requirement: !ruby/object:Gem::Requirement
293
+ requirements:
294
+ - - "~>"
295
+ - !ruby/object:Gem::Version
296
+ version: '5.0'
297
+ - - ">="
298
+ - !ruby/object:Gem::Version
299
+ version: 5.0.4
300
+ name: elasticsearch
301
+ prerelease: false
302
+ type: :runtime
303
+ version_requirements: !ruby/object:Gem::Requirement
304
+ requirements:
305
+ - - "~>"
306
+ - !ruby/object:Gem::Version
307
+ version: '5.0'
308
+ - - ">="
309
+ - !ruby/object:Gem::Version
310
+ version: 5.0.4
311
+ - !ruby/object:Gem::Dependency
312
+ requirement: !ruby/object:Gem::Requirement
313
+ requirements:
314
+ - - ">="
315
+ - !ruby/object:Gem::Version
316
+ version: 0.5.4
317
+ - - "<"
318
+ - !ruby/object:Gem::Version
319
+ version: 1.0.0
320
+ name: manticore
321
+ prerelease: false
322
+ type: :runtime
323
+ version_requirements: !ruby/object:Gem::Requirement
324
+ requirements:
325
+ - - ">="
326
+ - !ruby/object:Gem::Version
327
+ version: 0.5.4
328
+ - - "<"
329
+ - !ruby/object:Gem::Version
330
+ version: 1.0.0
331
+ description: The core components of logstash, the scalable log and event management
332
+ tool
286
333
  email:
287
334
  - info@elastic.co
288
335
  executables: []
@@ -330,12 +377,16 @@ files:
330
377
  - lib/logstash/config/file.rb
331
378
  - lib/logstash/config/grammar.rb
332
379
  - lib/logstash/config/mixin.rb
380
+ - lib/logstash/config/modules_common.rb
333
381
  - lib/logstash/config/pipeline_config.rb
334
382
  - lib/logstash/config/source/base.rb
335
383
  - lib/logstash/config/source/local.rb
384
+ - lib/logstash/config/source/modules.rb
336
385
  - lib/logstash/config/source/multi_local.rb
337
386
  - lib/logstash/config/source_loader.rb
387
+ - lib/logstash/config/string_escape.rb
338
388
  - lib/logstash/converge_result.rb
389
+ - lib/logstash/elasticsearch_client.rb
339
390
  - lib/logstash/environment.rb
340
391
  - lib/logstash/errors.rb
341
392
  - lib/logstash/event.rb
@@ -346,10 +397,10 @@ files:
346
397
  - lib/logstash/inputs/base.rb
347
398
  - lib/logstash/inputs/threadable.rb
348
399
  - lib/logstash/instrument/collector.rb
400
+ - lib/logstash/instrument/global_metrics.rb
349
401
  - lib/logstash/instrument/metric.rb
350
402
  - lib/logstash/instrument/metric_store.rb
351
403
  - lib/logstash/instrument/metric_type.rb
352
- - lib/logstash/instrument/metric_type/base.rb
353
404
  - lib/logstash/instrument/metric_type/counter.rb
354
405
  - lib/logstash/instrument/metric_type/gauge.rb
355
406
  - lib/logstash/instrument/namespaced_metric.rb
@@ -357,6 +408,7 @@ files:
357
408
  - lib/logstash/instrument/null_metric.rb
358
409
  - lib/logstash/instrument/periodic_poller/base.rb
359
410
  - lib/logstash/instrument/periodic_poller/cgroup.rb
411
+ - lib/logstash/instrument/periodic_poller/dlq.rb
360
412
  - lib/logstash/instrument/periodic_poller/jvm.rb
361
413
  - lib/logstash/instrument/periodic_poller/load_average.rb
362
414
  - lib/logstash/instrument/periodic_poller/os.rb
@@ -369,6 +421,23 @@ files:
369
421
  - lib/logstash/logging.rb
370
422
  - lib/logstash/logging/json.rb
371
423
  - lib/logstash/logging/logger.rb
424
+ - lib/logstash/modules/cli_parser.rb
425
+ - lib/logstash/modules/elasticsearch_config.rb
426
+ - lib/logstash/modules/elasticsearch_importer.rb
427
+ - lib/logstash/modules/elasticsearch_resource.rb
428
+ - lib/logstash/modules/file_reader.rb
429
+ - lib/logstash/modules/kibana_base.rb
430
+ - lib/logstash/modules/kibana_client.rb
431
+ - lib/logstash/modules/kibana_config.rb
432
+ - lib/logstash/modules/kibana_dashboards.rb
433
+ - lib/logstash/modules/kibana_importer.rb
434
+ - lib/logstash/modules/kibana_resource.rb
435
+ - lib/logstash/modules/kibana_settings.rb
436
+ - lib/logstash/modules/logstash_config.rb
437
+ - lib/logstash/modules/resource_base.rb
438
+ - lib/logstash/modules/scaffold.rb
439
+ - lib/logstash/modules/settings_merger.rb
440
+ - lib/logstash/modules/util.rb
372
441
  - lib/logstash/namespace.rb
373
442
  - lib/logstash/output_delegator.rb
374
443
  - lib/logstash/output_delegator_strategies/legacy.rb
@@ -396,13 +465,11 @@ files:
396
465
  - lib/logstash/plugin.rb
397
466
  - lib/logstash/plugins/hooks_registry.rb
398
467
  - lib/logstash/plugins/registry.rb
399
- - lib/logstash/program.rb
400
468
  - lib/logstash/queue_factory.rb
401
469
  - lib/logstash/runner.rb
402
470
  - lib/logstash/settings.rb
403
471
  - lib/logstash/shutdown_watcher.rb
404
472
  - lib/logstash/state_resolver.rb
405
- - lib/logstash/string_interpolation.rb
406
473
  - lib/logstash/timestamp.rb
407
474
  - lib/logstash/universal_plugin.rb
408
475
  - lib/logstash/util.rb
@@ -456,6 +523,7 @@ files:
456
523
  - spec/logstash/config/source/local_spec.rb
457
524
  - spec/logstash/config/source/multi_local_spec.rb
458
525
  - spec/logstash/config/source_loader_spec.rb
526
+ - spec/logstash/config/string_escape_spec.rb
459
527
  - spec/logstash/converge_result_spec.rb
460
528
  - spec/logstash/environment_spec.rb
461
529
  - spec/logstash/event_dispatcher_spec.rb
@@ -474,6 +542,7 @@ files:
474
542
  - spec/logstash/instrument/null_metric_spec.rb
475
543
  - spec/logstash/instrument/periodic_poller/base_spec.rb
476
544
  - spec/logstash/instrument/periodic_poller/cgroup_spec.rb
545
+ - spec/logstash/instrument/periodic_poller/dlq_spec.rb
477
546
  - spec/logstash/instrument/periodic_poller/jvm_spec.rb
478
547
  - spec/logstash/instrument/periodic_poller/load_average_spec.rb
479
548
  - spec/logstash/instrument/periodic_poller/os_spec.rb
@@ -482,6 +551,9 @@ files:
482
551
  - spec/logstash/json_spec.rb
483
552
  - spec/logstash/legacy_ruby_event_spec.rb
484
553
  - spec/logstash/legacy_ruby_timestamp_spec.rb
554
+ - spec/logstash/modules/cli_parser_spec.rb
555
+ - spec/logstash/modules/logstash_config_spec.rb
556
+ - spec/logstash/modules/scaffold_spec.rb
485
557
  - spec/logstash/output_delegator_spec.rb
486
558
  - spec/logstash/outputs/base_spec.rb
487
559
  - spec/logstash/patches_spec.rb
@@ -503,6 +575,7 @@ files:
503
575
  - spec/logstash/settings/integer_spec.rb
504
576
  - spec/logstash/settings/numeric_spec.rb
505
577
  - spec/logstash/settings/port_range_spec.rb
578
+ - spec/logstash/settings/splittable_string_array_spec.rb
506
579
  - spec/logstash/settings/string_spec.rb
507
580
  - spec/logstash/settings/time_value_spec.rb
508
581
  - spec/logstash/settings/writable_directory_spec.rb
@@ -520,6 +593,7 @@ files:
520
593
  - spec/logstash/util/safe_uri_spec.rb
521
594
  - spec/logstash/util/time_value_spec.rb
522
595
  - spec/logstash/util/unicode_trimmer_spec.rb
596
+ - spec/logstash/util/wrapped_acked_queue_spec.rb
523
597
  - spec/logstash/util/wrapped_synchronous_queue_spec.rb
524
598
  - spec/logstash/util_spec.rb
525
599
  - spec/logstash/webserver_spec.rb
@@ -548,14 +622,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
548
622
  - !ruby/object:Gem::Version
549
623
  version: 1.3.1
550
624
  requirements:
625
+ - jar org.apache.logging.log4j:log4j-slf4j-impl, 2.6.2
551
626
  - jar org.apache.logging.log4j:log4j-api, 2.6.2
552
627
  - jar org.apache.logging.log4j:log4j-core, 2.6.2
553
- - jar com.fasterxml.jackson.core:jackson-core, 2.7.4
554
- - jar com.fasterxml.jackson.core:jackson-databind, 2.7.4
555
- - jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.7.4
556
- - jar com.fasterxml.jackson.dataformat:jackson-dataformat-cbor, 2.7.4
628
+ - jar com.fasterxml.jackson.core:jackson-core, 2.7.3
629
+ - jar com.fasterxml.jackson.core:jackson-databind, 2.7.3
630
+ - jar com.fasterxml.jackson.core:jackson-annotations, 2.7.3
631
+ - jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.7.3
632
+ - jar com.fasterxml.jackson.dataformat:jackson-dataformat-cbor, 2.7.3
557
633
  rubyforge_project:
558
- rubygems_version: 2.4.8
634
+ rubygems_version: 2.6.11
559
635
  signing_key:
560
636
  specification_version: 4
561
637
  summary: logstash-core - The core components of logstash
@@ -584,6 +660,7 @@ test_files:
584
660
  - spec/logstash/config/source/local_spec.rb
585
661
  - spec/logstash/config/source/multi_local_spec.rb
586
662
  - spec/logstash/config/source_loader_spec.rb
663
+ - spec/logstash/config/string_escape_spec.rb
587
664
  - spec/logstash/converge_result_spec.rb
588
665
  - spec/logstash/environment_spec.rb
589
666
  - spec/logstash/event_dispatcher_spec.rb
@@ -602,6 +679,7 @@ test_files:
602
679
  - spec/logstash/instrument/null_metric_spec.rb
603
680
  - spec/logstash/instrument/periodic_poller/base_spec.rb
604
681
  - spec/logstash/instrument/periodic_poller/cgroup_spec.rb
682
+ - spec/logstash/instrument/periodic_poller/dlq_spec.rb
605
683
  - spec/logstash/instrument/periodic_poller/jvm_spec.rb
606
684
  - spec/logstash/instrument/periodic_poller/load_average_spec.rb
607
685
  - spec/logstash/instrument/periodic_poller/os_spec.rb
@@ -610,6 +688,9 @@ test_files:
610
688
  - spec/logstash/json_spec.rb
611
689
  - spec/logstash/legacy_ruby_event_spec.rb
612
690
  - spec/logstash/legacy_ruby_timestamp_spec.rb
691
+ - spec/logstash/modules/cli_parser_spec.rb
692
+ - spec/logstash/modules/logstash_config_spec.rb
693
+ - spec/logstash/modules/scaffold_spec.rb
613
694
  - spec/logstash/output_delegator_spec.rb
614
695
  - spec/logstash/outputs/base_spec.rb
615
696
  - spec/logstash/patches_spec.rb
@@ -631,6 +712,7 @@ test_files:
631
712
  - spec/logstash/settings/integer_spec.rb
632
713
  - spec/logstash/settings/numeric_spec.rb
633
714
  - spec/logstash/settings/port_range_spec.rb
715
+ - spec/logstash/settings/splittable_string_array_spec.rb
634
716
  - spec/logstash/settings/string_spec.rb
635
717
  - spec/logstash/settings/time_value_spec.rb
636
718
  - spec/logstash/settings/writable_directory_spec.rb
@@ -648,6 +730,7 @@ test_files:
648
730
  - spec/logstash/util/safe_uri_spec.rb
649
731
  - spec/logstash/util/time_value_spec.rb
650
732
  - spec/logstash/util/unicode_trimmer_spec.rb
733
+ - spec/logstash/util/wrapped_acked_queue_spec.rb
651
734
  - spec/logstash/util/wrapped_synchronous_queue_spec.rb
652
735
  - spec/logstash/util_spec.rb
653
736
  - spec/logstash/webserver_spec.rb
@@ -1,31 +0,0 @@
1
- # encoding: utf-8
2
- require "logstash/util"
3
-
4
- module LogStash module Instrument module MetricType
5
- class Base
6
- attr_reader :namespaces, :key
7
-
8
- def initialize(namespaces, key)
9
- @namespaces = namespaces
10
- @key = key
11
- end
12
-
13
- def inspect
14
- "#{self.class.name} - namespaces: #{namespaces} key: #{key} value: #{value}"
15
- end
16
-
17
- def to_hash
18
- {
19
- key => value
20
- }
21
- end
22
-
23
- def to_json_data
24
- value
25
- end
26
-
27
- def type
28
- @type ||= LogStash::Util.class_name(self).downcase
29
- end
30
- end
31
- end; end; end