logstash-input-beats 6.9.1-java → 6.9.3-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.
Files changed (17) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/VERSION +1 -1
  4. data/lib/logstash/inputs/beats.rb +1 -1
  5. data/lib/logstash-input-beats_jars.rb +7 -7
  6. data/lib/tasks/test.rake +8 -6
  7. data/logstash-input-beats.gemspec +0 -1
  8. data/spec/inputs/beats_spec.rb +3 -3
  9. data/vendor/jar-dependencies/io/netty/netty-buffer/{4.1.115.Final/netty-buffer-4.1.115.Final.jar → 4.1.118.Final/netty-buffer-4.1.118.Final.jar} +0 -0
  10. data/vendor/jar-dependencies/io/netty/netty-codec/{4.1.115.Final/netty-codec-4.1.115.Final.jar → 4.1.118.Final/netty-codec-4.1.118.Final.jar} +0 -0
  11. data/vendor/jar-dependencies/io/netty/netty-common/{4.1.115.Final/netty-common-4.1.115.Final.jar → 4.1.118.Final/netty-common-4.1.118.Final.jar} +0 -0
  12. data/vendor/jar-dependencies/io/netty/netty-handler/{4.1.115.Final/netty-handler-4.1.115.Final.jar → 4.1.118.Final/netty-handler-4.1.118.Final.jar} +0 -0
  13. data/vendor/jar-dependencies/io/netty/netty-transport/{4.1.115.Final/netty-transport-4.1.115.Final.jar → 4.1.118.Final/netty-transport-4.1.118.Final.jar} +0 -0
  14. data/vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/{4.1.115.Final/netty-transport-native-unix-common-4.1.115.Final.jar → 4.1.118.Final/netty-transport-native-unix-common-4.1.118.Final.jar} +0 -0
  15. data/vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/6.9.3/logstash-input-beats-6.9.3.jar +0 -0
  16. metadata +9 -29
  17. data/vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/6.9.1/logstash-input-beats-6.9.1.jar +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 765bfc357e5f8f71d8b2ca407a57c5d3ab1bdc0df052477f0997c5318f694f54
4
- data.tar.gz: 55f75fac1f6afc9777eb7068f8326544e855d1ee69982a9c811f6207dcac9293
3
+ metadata.gz: 6cc3149a1025ec65cc833215c63aec1f6d53a46f8799307259c7447576dbde15
4
+ data.tar.gz: 408e79964724fb2dfbc859fd392e3498c7d7467e91ed976eaaac5312ea21c4db
5
5
  SHA512:
6
- metadata.gz: 205d378bb2482f9b29dadd2115a5dcd126644a69f75ebaa60c9092707cdc0ca34f66dd3ed37996fdbd07570b515d95bc1169778c67bc717718d5a1633728ce7e
7
- data.tar.gz: 2e8abb74a6297423f6a5240072b6d8f332f69f8c83d8abc5babe69abea2c5c1f3207ad212be5d745f1c8b8ad50841e8dcbf2692f533d7335a39b4fdaffedfff8
6
+ metadata.gz: 66c49602c8d1d36558c66db1968b598b03219c6be483e4efc8875b2e8745bec84fc826bddac5b6b06b9b4cc86b5b66fb5745a7d13dcbf3d5dae7b908848be824
7
+ data.tar.gz: 90769236133dc69f0f355ce1bea6b89172bba89716260c834d0e1712f57f62de43c62f437867afeeaa6f7555e5dc4b9ebf75a6f0549018668bb46b537fac5bb9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 6.9.3
2
+ - Upgrade netty to 4.1.118 [#514](https://github.com/logstash-plugins/logstash-input-beats/pull/514)
3
+
4
+ ## 6.9.2
5
+ - Name netty threads according to their purpose and the plugin id [#511](https://github.com/logstash-plugins/logstash-input-beats/pull/511)
6
+
1
7
  ## 6.9.1
2
8
  - Upgrade netty to 4.1.115 [#507](https://github.com/logstash-plugins/logstash-input-beats/pull/507)
3
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.9.1
1
+ 6.9.3
@@ -247,7 +247,7 @@ class LogStash::Inputs::Beats < LogStash::Inputs::Base
247
247
  end # def register
248
248
 
249
249
  def create_server
250
- server = org.logstash.beats.Server.new(@host, @port, @client_inactivity_timeout, @event_loop_threads, @executor_threads)
250
+ server = org.logstash.beats.Server.new(@id, @host, @port, @client_inactivity_timeout, @event_loop_threads, @executor_threads)
251
251
  server.setSslHandlerProvider(new_ssl_handshake_provider(new_ssl_context_builder)) if @ssl_enabled
252
252
  server
253
253
  end
@@ -1,11 +1,11 @@
1
1
  # AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.
2
2
 
3
3
  require 'jar_dependencies'
4
- require_jar('io.netty', 'netty-buffer', '4.1.115.Final')
5
- require_jar('io.netty', 'netty-codec', '4.1.115.Final')
6
- require_jar('io.netty', 'netty-common', '4.1.115.Final')
7
- require_jar('io.netty', 'netty-transport', '4.1.115.Final')
8
- require_jar('io.netty', 'netty-handler', '4.1.115.Final')
9
- require_jar('io.netty', 'netty-transport-native-unix-common', '4.1.115.Final')
4
+ require_jar('io.netty', 'netty-buffer', '4.1.118.Final')
5
+ require_jar('io.netty', 'netty-codec', '4.1.118.Final')
6
+ require_jar('io.netty', 'netty-common', '4.1.118.Final')
7
+ require_jar('io.netty', 'netty-transport', '4.1.118.Final')
8
+ require_jar('io.netty', 'netty-handler', '4.1.118.Final')
9
+ require_jar('io.netty', 'netty-transport-native-unix-common', '4.1.118.Final')
10
10
  require_jar('org.javassist', 'javassist', '3.24.0-GA')
11
- require_jar('org.logstash.beats', 'logstash-input-beats', '6.9.1')
11
+ require_jar('org.logstash.beats', 'logstash-input-beats', '6.9.3')
data/lib/tasks/test.rake CHANGED
@@ -40,17 +40,19 @@ namespace :test do
40
40
  puts "Filebeat: downloading from #{FILEBEAT_URL} to #{download_destination}"
41
41
  download(FILEBEAT_URL, download_destination)
42
42
 
43
- untar_all(download_destination, File.join(VENDOR_PATH, "filebeat")) { |e| e }
43
+ untar_all(download_destination, VENDOR_PATH) { |e| e }
44
44
  end
45
45
  end
46
46
  end
47
47
  end
48
48
 
49
- # Uncompress all the file from the archive this only work with
50
- # one level directory structure and filebeat packaging.
49
+ require 'zlib'
50
+ require 'minitar'
51
+
51
52
  def untar_all(file, destination)
52
- untar(file) do |entry|
53
- out = entry.full_name.split("/").last
54
- File.join(destination, out)
53
+ Zlib::GzipReader.open(file) do |reader|
54
+ Minitar.unpack(reader, destination)
55
55
  end
56
+ filebeat_full_name = Dir.glob(destination + "/filebeat-*").first
57
+ File.rename(filebeat_full_name, destination + "/filebeat")
56
58
  end
@@ -26,7 +26,6 @@ Gem::Specification.new do |s|
26
26
  s.add_runtime_dependency "concurrent-ruby", "~> 1.0"
27
27
  s.add_runtime_dependency "thread_safe", "~> 0.3.5"
28
28
  s.add_runtime_dependency "logstash-codec-multiline", ">= 2.0.5"
29
- s.add_runtime_dependency 'jar-dependencies', '~> 0.3', '>= 0.3.4'
30
29
  s.add_runtime_dependency 'logstash-mixin-ecs_compatibility_support', '~>1.3'
31
30
  s.add_runtime_dependency 'logstash-mixin-event_support', '~>1.0'
32
31
  s.add_runtime_dependency 'logstash-mixin-plugin_factory_support', '~>1.0'
@@ -38,7 +38,7 @@ describe LogStash::Inputs::Beats do
38
38
  let(:port) { 9001 }
39
39
 
40
40
  it "sends the required options to the server" do
41
- expect(org.logstash.beats.Server).to receive(:new).with(host, port, client_inactivity_timeout, event_loop_threads, executor_threads)
41
+ expect(org.logstash.beats.Server).to receive(:new).with(plugin.id, host, port, client_inactivity_timeout, event_loop_threads, executor_threads)
42
42
  subject.register
43
43
  end
44
44
  end
@@ -531,8 +531,8 @@ describe LogStash::Inputs::Beats do
531
531
  subject(:plugin) { LogStash::Inputs::Beats.new(config) }
532
532
 
533
533
  before do
534
- @server = org.logstash.beats.Server.new(host, port, client_inactivity_timeout, event_loop_threads, executor_threads)
535
- expect( org.logstash.beats.Server ).to receive(:new).with(host, port, client_inactivity_timeout, event_loop_threads, executor_threads).and_return @server
534
+ @server = org.logstash.beats.Server.new(plugin.id, host, port, client_inactivity_timeout, event_loop_threads, executor_threads)
535
+ expect( org.logstash.beats.Server ).to receive(:new).with(plugin.id, host, port, client_inactivity_timeout, event_loop_threads, executor_threads).and_return @server
536
536
  expect( @server ).to receive(:listen)
537
537
 
538
538
  subject.register
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-beats
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.9.1
4
+ version: 6.9.3
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-18 00:00:00.000000000 Z
11
+ date: 2025-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -86,26 +86,6 @@ dependencies:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: 2.0.5
89
- - !ruby/object:Gem::Dependency
90
- requirement: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - "~>"
93
- - !ruby/object:Gem::Version
94
- version: '0.3'
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: 0.3.4
98
- name: jar-dependencies
99
- type: :runtime
100
- prerelease: false
101
- version_requirements: !ruby/object:Gem::Requirement
102
- requirements:
103
- - - "~>"
104
- - !ruby/object:Gem::Version
105
- version: '0.3'
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- version: 0.3.4
109
89
  - !ruby/object:Gem::Dependency
110
90
  requirement: !ruby/object:Gem::Requirement
111
91
  requirements:
@@ -319,14 +299,14 @@ files:
319
299
  - spec/support/integration_shared_context.rb
320
300
  - spec/support/logstash_test.rb
321
301
  - spec/support/shared_examples.rb
322
- - vendor/jar-dependencies/io/netty/netty-buffer/4.1.115.Final/netty-buffer-4.1.115.Final.jar
323
- - vendor/jar-dependencies/io/netty/netty-codec/4.1.115.Final/netty-codec-4.1.115.Final.jar
324
- - vendor/jar-dependencies/io/netty/netty-common/4.1.115.Final/netty-common-4.1.115.Final.jar
325
- - vendor/jar-dependencies/io/netty/netty-handler/4.1.115.Final/netty-handler-4.1.115.Final.jar
326
- - vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/4.1.115.Final/netty-transport-native-unix-common-4.1.115.Final.jar
327
- - vendor/jar-dependencies/io/netty/netty-transport/4.1.115.Final/netty-transport-4.1.115.Final.jar
302
+ - vendor/jar-dependencies/io/netty/netty-buffer/4.1.118.Final/netty-buffer-4.1.118.Final.jar
303
+ - vendor/jar-dependencies/io/netty/netty-codec/4.1.118.Final/netty-codec-4.1.118.Final.jar
304
+ - vendor/jar-dependencies/io/netty/netty-common/4.1.118.Final/netty-common-4.1.118.Final.jar
305
+ - vendor/jar-dependencies/io/netty/netty-handler/4.1.118.Final/netty-handler-4.1.118.Final.jar
306
+ - vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/4.1.118.Final/netty-transport-native-unix-common-4.1.118.Final.jar
307
+ - vendor/jar-dependencies/io/netty/netty-transport/4.1.118.Final/netty-transport-4.1.118.Final.jar
328
308
  - vendor/jar-dependencies/org/javassist/javassist/3.24.0-GA/javassist-3.24.0-GA.jar
329
- - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/6.9.1/logstash-input-beats-6.9.1.jar
309
+ - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/6.9.3/logstash-input-beats-6.9.3.jar
330
310
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
331
311
  licenses:
332
312
  - Apache License (2.0)