logstash-core 5.6.2-java → 5.6.3-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gemspec_jars.rb +5 -4
- data/lib/logstash-core/logstash-core.jar +0 -0
- data/lib/logstash-core/version.rb +8 -4
- data/lib/logstash-core_jars.rb +10 -10
- data/lib/logstash/config/config_ast.rb +1 -1
- data/lib/logstash/pipeline.rb +4 -6
- data/lib/logstash/util/wrapped_acked_queue.rb +6 -0
- data/lib/logstash/util/wrapped_synchronous_queue.rb +6 -0
- data/lib/logstash/version.rb +8 -10
- data/logstash-core.gemspec +24 -2
- data/spec/logstash/pipeline_spec.rb +4 -4
- data/versions-gem-copy.yml +12 -0
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fef2dc1c5cc3cbee836c5250ca4c9d125ac18302
|
4
|
+
data.tar.gz: 710215041fb6cce31484f588d2d141de3d126caf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a5a8302cdb3e5a947eaa0888bb284b3f05011ac0d928420ec32b0ea3bff90721580d81c2896556647c2c21b354c14a31e68d2926f1ee0d6c186d0adb4954198
|
7
|
+
data.tar.gz: 36061c2b853e3a70b53a1bfb929597ab1d9f3f489596afe18972ea8d3f941446b5f92f63a92329a08fae2efb219fe9d53c6a49991040f7b25b7147851ba9ee76
|
data/gemspec_jars.rb
CHANGED
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
gem.requirements << "jar org.apache.logging.log4j:log4j-api, 2.6.2"
|
6
6
|
gem.requirements << "jar org.apache.logging.log4j:log4j-core, 2.6.2"
|
7
|
-
gem.requirements << "jar com.fasterxml.jackson.core:jackson-core, 2.
|
8
|
-
gem.requirements << "jar com.fasterxml.jackson.core:jackson-databind, 2.
|
9
|
-
gem.requirements << "jar com.fasterxml.jackson.
|
10
|
-
gem.requirements << "jar com.fasterxml.jackson.
|
7
|
+
gem.requirements << "jar com.fasterxml.jackson.core:jackson-core, 2.9.1"
|
8
|
+
gem.requirements << "jar com.fasterxml.jackson.core:jackson-databind, 2.9.1"
|
9
|
+
gem.requirements << "jar com.fasterxml.jackson.core:jackson-annotations, 2.9.1"
|
10
|
+
gem.requirements << "jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.9.1"
|
11
|
+
gem.requirements << "jar com.fasterxml.jackson.dataformat:jackson-dataformat-cbor, 2.9.1"
|
Binary file
|
@@ -2,7 +2,11 @@
|
|
2
2
|
|
3
3
|
# The version of logstash core gem.
|
4
4
|
#
|
5
|
-
#
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
# sourced from a copy of the master versions.yml file, see logstash-core/logstash-core.gemspec
|
6
|
+
if !defined?(ALL_VERSIONS)
|
7
|
+
require 'yaml'
|
8
|
+
ALL_VERSIONS = YAML.load_file(File.expand_path("../../versions-gem-copy.yml", File.dirname(__FILE__)))
|
9
|
+
end
|
10
|
+
if !defined?(LOGSTASH_CORE_VERSION)
|
11
|
+
LOGSTASH_CORE_VERSION = ALL_VERSIONS.fetch("logstash-core")
|
12
|
+
end
|
data/lib/logstash-core_jars.rb
CHANGED
@@ -3,20 +3,20 @@ begin
|
|
3
3
|
require 'jar_dependencies'
|
4
4
|
rescue LoadError
|
5
5
|
require 'org/apache/logging/log4j/log4j-core/2.6.2/log4j-core-2.6.2.jar'
|
6
|
-
require 'com/fasterxml/jackson/
|
6
|
+
require 'com/fasterxml/jackson/core/jackson-databind/2.9.1/jackson-databind-2.9.1.jar'
|
7
7
|
require 'org/apache/logging/log4j/log4j-api/2.6.2/log4j-api-2.6.2.jar'
|
8
|
-
require 'com/fasterxml/jackson/core/jackson-
|
9
|
-
require 'com/fasterxml/jackson/
|
10
|
-
require 'com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.
|
11
|
-
require 'com/fasterxml/jackson/core/jackson-
|
8
|
+
require 'com/fasterxml/jackson/core/jackson-annotations/2.9.1/jackson-annotations-2.9.1.jar'
|
9
|
+
require 'com/fasterxml/jackson/module/jackson-module-afterburner/2.9.1/jackson-module-afterburner-2.9.1.jar'
|
10
|
+
require 'com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.9.1/jackson-dataformat-cbor-2.9.1.jar'
|
11
|
+
require 'com/fasterxml/jackson/core/jackson-core/2.9.1/jackson-core-2.9.1.jar'
|
12
12
|
end
|
13
13
|
|
14
14
|
if defined? Jars
|
15
15
|
require_jar( 'org.apache.logging.log4j', 'log4j-core', '2.6.2' )
|
16
|
-
require_jar( 'com.fasterxml.jackson.
|
16
|
+
require_jar( 'com.fasterxml.jackson.core', 'jackson-databind', '2.9.1' )
|
17
17
|
require_jar( 'org.apache.logging.log4j', 'log4j-api', '2.6.2' )
|
18
|
-
require_jar( 'com.fasterxml.jackson.core', 'jackson-
|
19
|
-
require_jar( 'com.fasterxml.jackson.
|
20
|
-
require_jar( 'com.fasterxml.jackson.dataformat', 'jackson-dataformat-cbor', '2.
|
21
|
-
require_jar( 'com.fasterxml.jackson.core', 'jackson-
|
18
|
+
require_jar( 'com.fasterxml.jackson.core', 'jackson-annotations', '2.9.1' )
|
19
|
+
require_jar( 'com.fasterxml.jackson.module', 'jackson-module-afterburner', '2.9.1' )
|
20
|
+
require_jar( 'com.fasterxml.jackson.dataformat', 'jackson-dataformat-cbor', '2.9.1' )
|
21
|
+
require_jar( 'com.fasterxml.jackson.core', 'jackson-core', '2.9.1' )
|
22
22
|
end
|
@@ -141,7 +141,7 @@ module LogStash; module Config; module AST
|
|
141
141
|
# of the output/filter function
|
142
142
|
definitions << "define_singleton_method :#{type}_func do |event|"
|
143
143
|
definitions << " targeted_outputs = []" if type == "output"
|
144
|
-
definitions << " events =
|
144
|
+
definitions << " events = event" if type == "filter"
|
145
145
|
definitions << " @logger.debug? && @logger.debug(\"#{type} received\", \"event\" => event.to_hash)"
|
146
146
|
|
147
147
|
sections.select { |s| s.plugin_type.text_value == type }.each do |s|
|
data/lib/logstash/pipeline.rb
CHANGED
@@ -395,11 +395,9 @@ module LogStash; class Pipeline < BasePipeline
|
|
395
395
|
end
|
396
396
|
|
397
397
|
def filter_batch(batch)
|
398
|
-
batch.each do |
|
399
|
-
|
400
|
-
|
401
|
-
batch.merge(e) unless e.cancelled?
|
402
|
-
end
|
398
|
+
filter_func(batch.to_a).each do |e|
|
399
|
+
#these are both original and generated events
|
400
|
+
batch.merge(e) unless e.cancelled?
|
403
401
|
end
|
404
402
|
@filter_queue_client.add_filtered_metrics(batch)
|
405
403
|
@events_filtered.increment(batch.size)
|
@@ -539,7 +537,7 @@ module LogStash; class Pipeline < BasePipeline
|
|
539
537
|
# in the pipeline anymore.
|
540
538
|
def filter(event, &block)
|
541
539
|
# filter_func returns all filtered events, including cancelled ones
|
542
|
-
filter_func(event).each {
|
540
|
+
filter_func([event]).each {|e| block.call(e)}
|
543
541
|
end
|
544
542
|
|
545
543
|
|
@@ -287,6 +287,12 @@ module LogStash; module Util
|
|
287
287
|
# @cancelled[event] = true
|
288
288
|
end
|
289
289
|
|
290
|
+
def to_a
|
291
|
+
events = []
|
292
|
+
each {|e| events << e}
|
293
|
+
events
|
294
|
+
end
|
295
|
+
|
290
296
|
def each(&blk)
|
291
297
|
# take care not to cause @originals or @generated to change during iteration
|
292
298
|
|
@@ -218,6 +218,12 @@ module LogStash; module Util
|
|
218
218
|
# @cancelled[event] = true
|
219
219
|
end
|
220
220
|
|
221
|
+
def to_a
|
222
|
+
events = []
|
223
|
+
each {|e| events << e}
|
224
|
+
events
|
225
|
+
end
|
226
|
+
|
221
227
|
def each(&blk)
|
222
228
|
# take care not to cause @originals or @generated to change during iteration
|
223
229
|
@iterating = true
|
data/lib/logstash/version.rb
CHANGED
@@ -2,13 +2,11 @@
|
|
2
2
|
|
3
3
|
# The version of the logstash package (not the logstash-core gem version).
|
4
4
|
#
|
5
|
-
#
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
LOGSTASH_VERSION = "5.6.2"
|
5
|
+
# sourced from a copy of the master versions.yml file, see logstash-core/logstash-core.gemspec
|
6
|
+
if !defined?(ALL_VERSIONS)
|
7
|
+
require 'yaml'
|
8
|
+
ALL_VERSIONS = YAML.load_file(File.expand_path("../../versions-gem-copy.yml", File.dirname(__FILE__)))
|
9
|
+
end
|
10
|
+
if !defined?(LOGSTASH_VERSION)
|
11
|
+
LOGSTASH_VERSION = ALL_VERSIONS.fetch("logstash")
|
12
|
+
end
|
data/logstash-core.gemspec
CHANGED
@@ -1,6 +1,25 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
project_versions_yaml_path = File.expand_path("../versions.yml", File.dirname(__FILE__))
|
6
|
+
if File.exist?(project_versions_yaml_path)
|
7
|
+
# we need to copy the project level versions.yml into the gem root
|
8
|
+
# to be able to package it into the gems file structure
|
9
|
+
# as the require 'logstash-core/version' loads the yaml file from within the gem root.
|
10
|
+
#
|
11
|
+
# we ignore the copy in git and we overwrite an existing file
|
12
|
+
# each time we build the logstash-core gem
|
13
|
+
original_lines = IO.readlines(project_versions_yaml_path)
|
14
|
+
original_lines << ""
|
15
|
+
original_lines << "# This is a copy the project level versions.yml into this gem's root and it is created when the gemspec is evaluated."
|
16
|
+
gem_versions_yaml_path = File.expand_path("./versions-gem-copy.yml", File.dirname(__FILE__))
|
17
|
+
File.open(gem_versions_yaml_path, 'w') do |new_file|
|
18
|
+
# create or overwrite
|
19
|
+
new_file.puts(original_lines)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
4
23
|
require 'logstash-core/version'
|
5
24
|
|
6
25
|
Gem::Specification.new do |gem|
|
@@ -11,7 +30,10 @@ Gem::Specification.new do |gem|
|
|
11
30
|
gem.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
|
12
31
|
gem.license = "Apache License (2.0)"
|
13
32
|
|
14
|
-
gem.files = Dir.glob(
|
33
|
+
gem.files = Dir.glob(
|
34
|
+
%w(versions-gem-copy.yml logstash-core.gemspec gemspec_jars.rb lib/**/*.rb spec/**/*.rb locales/*
|
35
|
+
lib/logstash/api/init.ru lib/logstash-core/logstash-core.jar)
|
36
|
+
)
|
15
37
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
16
38
|
gem.name = "logstash-core"
|
17
39
|
gem.require_paths = ["lib"]
|
@@ -46,7 +68,7 @@ Gem::Specification.new do |gem|
|
|
46
68
|
gem.add_runtime_dependency "rubyzip", "~> 1.1.7"
|
47
69
|
gem.add_runtime_dependency "thread_safe", "~> 0.3.5" #(Apache 2.0 license)
|
48
70
|
|
49
|
-
gem.add_runtime_dependency "jrjackson", "~>
|
71
|
+
gem.add_runtime_dependency "jrjackson", "~> #{ALL_VERSIONS.fetch('jrjackson')}" #(Apache 2.0 license)
|
50
72
|
|
51
73
|
gem.add_runtime_dependency "jar-dependencies"
|
52
74
|
# as of Feb 3rd 2016, the ruby-maven gem is resolved to version 3.3.3 and that version
|
@@ -585,9 +585,9 @@ describe LogStash::Pipeline do
|
|
585
585
|
|
586
586
|
it "should handle evaluating different config" do
|
587
587
|
expect(pipeline1.output_func(LogStash::Event.new)).not_to include(nil)
|
588
|
-
expect(pipeline1.filter_func(LogStash::Event.new)).not_to include(nil)
|
588
|
+
expect(pipeline1.filter_func([LogStash::Event.new])).not_to include(nil)
|
589
589
|
expect(pipeline2.output_func(LogStash::Event.new)).not_to include(nil)
|
590
|
-
expect(pipeline1.filter_func(LogStash::Event.new)).not_to include(nil)
|
590
|
+
expect(pipeline1.filter_func([LogStash::Event.new])).not_to include(nil)
|
591
591
|
end
|
592
592
|
end
|
593
593
|
|
@@ -668,9 +668,9 @@ describe LogStash::Pipeline do
|
|
668
668
|
# in the current instance and was returning an array containing nil values for
|
669
669
|
# the match.
|
670
670
|
expect(pipeline1.output_func(LogStash::Event.new)).not_to include(nil)
|
671
|
-
expect(pipeline1.filter_func(LogStash::Event.new)).not_to include(nil)
|
671
|
+
expect(pipeline1.filter_func([LogStash::Event.new])).not_to include(nil)
|
672
672
|
expect(pipeline2.output_func(LogStash::Event.new)).not_to include(nil)
|
673
|
-
expect(pipeline1.filter_func(LogStash::Event.new)).not_to include(nil)
|
673
|
+
expect(pipeline1.filter_func([LogStash::Event.new])).not_to include(nil)
|
674
674
|
end
|
675
675
|
end
|
676
676
|
|
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
logstash: 5.6.3
|
3
|
+
logstash-core: 5.6.3
|
4
|
+
logstash-core-plugin-api: 2.1.12
|
5
|
+
|
6
|
+
# Note: this file is copied to the root of logstash-core because its gemspec needs it when
|
7
|
+
# bundler evaluates the gemspec via bin/logstash
|
8
|
+
# Ensure Jackson version here is kept in sync with version used by jrjackson gem
|
9
|
+
jrjackson: 0.4.3
|
10
|
+
jackson: 2.9.1
|
11
|
+
|
12
|
+
# This is a copy the project level versions.yml into this gem's root and it is created when the gemspec is evaluated.
|
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: 5.6.
|
4
|
+
version: 5.6.3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -251,7 +251,7 @@ dependencies:
|
|
251
251
|
requirements:
|
252
252
|
- - "~>"
|
253
253
|
- !ruby/object:Gem::Version
|
254
|
-
version: 0.4.
|
254
|
+
version: 0.4.3
|
255
255
|
name: jrjackson
|
256
256
|
prerelease: false
|
257
257
|
type: :runtime
|
@@ -259,7 +259,7 @@ dependencies:
|
|
259
259
|
requirements:
|
260
260
|
- - "~>"
|
261
261
|
- !ruby/object:Gem::Version
|
262
|
-
version: 0.4.
|
262
|
+
version: 0.4.3
|
263
263
|
- !ruby/object:Gem::Dependency
|
264
264
|
requirement: !ruby/object:Gem::Requirement
|
265
265
|
requirements:
|
@@ -574,6 +574,7 @@ files:
|
|
574
574
|
- spec/support/mocks_classes.rb
|
575
575
|
- spec/support/shared_contexts.rb
|
576
576
|
- spec/support/shared_examples.rb
|
577
|
+
- versions-gem-copy.yml
|
577
578
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
578
579
|
licenses:
|
579
580
|
- Apache License (2.0)
|
@@ -595,10 +596,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
595
596
|
requirements:
|
596
597
|
- jar org.apache.logging.log4j:log4j-api, 2.6.2
|
597
598
|
- jar org.apache.logging.log4j:log4j-core, 2.6.2
|
598
|
-
- jar com.fasterxml.jackson.core:jackson-core, 2.
|
599
|
-
- jar com.fasterxml.jackson.core:jackson-databind, 2.
|
600
|
-
- jar com.fasterxml.jackson.
|
601
|
-
- jar com.fasterxml.jackson.
|
599
|
+
- jar com.fasterxml.jackson.core:jackson-core, 2.9.1
|
600
|
+
- jar com.fasterxml.jackson.core:jackson-databind, 2.9.1
|
601
|
+
- jar com.fasterxml.jackson.core:jackson-annotations, 2.9.1
|
602
|
+
- jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.9.1
|
603
|
+
- jar com.fasterxml.jackson.dataformat:jackson-dataformat-cbor, 2.9.1
|
602
604
|
rubyforge_project:
|
603
605
|
rubygems_version: 2.4.8
|
604
606
|
signing_key:
|