logstash-input-beats 6.8.1-java → 6.8.3-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (18) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/README.md +1 -1
  4. data/VERSION +1 -1
  5. data/lib/logstash/inputs/beats/message_listener.rb +5 -5
  6. data/lib/logstash-input-beats_jars.rb +7 -7
  7. data/lib/tasks/test.rake +1 -14
  8. data/logstash-input-beats.gemspec +1 -1
  9. data/spec/inputs/beats/message_listener_spec.rb +1 -1
  10. data/vendor/jar-dependencies/io/netty/netty-buffer/{4.1.100.Final/netty-buffer-4.1.100.Final.jar → 4.1.109.Final/netty-buffer-4.1.109.Final.jar} +0 -0
  11. data/vendor/jar-dependencies/io/netty/netty-codec/{4.1.100.Final/netty-codec-4.1.100.Final.jar → 4.1.109.Final/netty-codec-4.1.109.Final.jar} +0 -0
  12. data/vendor/jar-dependencies/io/netty/netty-common/{4.1.100.Final/netty-common-4.1.100.Final.jar → 4.1.109.Final/netty-common-4.1.109.Final.jar} +0 -0
  13. data/vendor/jar-dependencies/io/netty/netty-handler/{4.1.100.Final/netty-handler-4.1.100.Final.jar → 4.1.109.Final/netty-handler-4.1.109.Final.jar} +0 -0
  14. data/vendor/jar-dependencies/io/netty/netty-transport/{4.1.100.Final/netty-transport-4.1.100.Final.jar → 4.1.109.Final/netty-transport-4.1.109.Final.jar} +0 -0
  15. data/vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/{4.1.100.Final/netty-transport-native-unix-common-4.1.100.Final.jar → 4.1.109.Final/netty-transport-native-unix-common-4.1.109.Final.jar} +0 -0
  16. data/vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/{6.8.1/logstash-input-beats-6.8.1.jar → 6.8.3/logstash-input-beats-6.8.3.jar} +0 -0
  17. metadata +9 -11
  18. data/spec/integration/logstash_forwarder_spec.rb +0 -108
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d91fa10d8b1456fdc6a180867ed0a97469b8f6da7791b948710b5946282aa77f
4
- data.tar.gz: d63fcf6fe46309ef34d5e4c0e28b322a72057064d3c6e1397446c758811d0a5c
3
+ metadata.gz: d5d648febef34d9834c245aa2bf0e0df2c911dc3afc1ce3ba8fb1ee41b2117ff
4
+ data.tar.gz: acd87cf69f58bc303aa2b3181160d816f9302bf196caf6d84ac1206e02bb3fc1
5
5
  SHA512:
6
- metadata.gz: a38aebb075a5d3ab1ac026026c162b93a06b26650a3c45284cf6553ed4e0b5608b39a8fea5c88feb15f12ca605967171e14c8d3212be12d3bd4aed68eb67c5c7
7
- data.tar.gz: 9582e7adee36063b8c96d8d75423981bab56b40406d2a9bfee462a3bd51cae77b9ec69cb506f9307a0c3ad63c2eebc584a3f2ae6d51efb4d4f3e5407cc9a7839
6
+ metadata.gz: 930b79caab311cbf62bf7ed51409d2e6458f3eb162db4c3de338d14a56e06b9934312a5bffc23e941952699d5cb86036fe86b4375231913b3665636ff41d6e88
7
+ data.tar.gz: 6b2bd8ddc4d0127998cd1c877ea15b575144730eb788caad210b033efa45fbc402dfbad5bc41e8eb21b5ecae239fcbf46c47ecdbf93bc15bd649f2422b494697
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 6.8.3
2
+ - bump netty to 4.1.109 [#495](https://github.com/logstash-plugins/logstash-input-beats/pull/495)
3
+
4
+ ## 6.8.2
5
+ - Remove Logstash forwarder test cases and add Lumberjack test cases [#488](https://github.com/logstash-plugins/logstash-input-beats/pull/488)
6
+
1
7
  ## 6.8.1
2
8
  - Added logging the best Netty's `maxOrder` setting when big payload trigger an unpooled allocation [#493](https://github.com/logstash-plugins/logstash-input-beats/pull/493)
3
9
 
data/README.md CHANGED
@@ -19,7 +19,7 @@ Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/log
19
19
 
20
20
  ## Developing
21
21
 
22
- ### 1. Plugin Developement and Testing
22
+ ### 1. Plugin Development and Testing
23
23
 
24
24
  #### Code
25
25
  - To get started, you'll need JRuby with the Bundler gem installed.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.8.1
1
+ 6.8.3
@@ -9,7 +9,7 @@ module LogStash module Inputs class Beats
9
9
  include org.logstash.beats.IMessageListener
10
10
 
11
11
  FILEBEAT_LOG_LINE_FIELD = "message".freeze
12
- LSF_LOG_LINE_FIELD = "line".freeze
12
+ LUMBERJACK_LINE_FIELD = "line".freeze
13
13
 
14
14
  ConnectionState = Struct.new(:ctx, :codec, :ip_address)
15
15
 
@@ -183,8 +183,8 @@ module LogStash module Inputs class Beats
183
183
  def extract_target_field(hash)
184
184
  if from_filebeat?(hash)
185
185
  hash.delete(FILEBEAT_LOG_LINE_FIELD).to_s
186
- elsif from_logstash_forwarder?(hash)
187
- hash.delete(LSF_LOG_LINE_FIELD).to_s
186
+ elsif from_lumberjack?(hash)
187
+ hash.delete(LUMBERJACK_LINE_FIELD).to_s
188
188
  end
189
189
  end
190
190
 
@@ -192,8 +192,8 @@ module LogStash module Inputs class Beats
192
192
  !hash[FILEBEAT_LOG_LINE_FIELD].nil?
193
193
  end
194
194
 
195
- def from_logstash_forwarder?(hash)
196
- !hash[LSF_LOG_LINE_FIELD].nil?
195
+ def from_lumberjack?(hash)
196
+ !hash[LUMBERJACK_LINE_FIELD].nil?
197
197
  end
198
198
 
199
199
  def increment_connection_count
@@ -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.100.Final')
5
- require_jar('io.netty', 'netty-codec', '4.1.100.Final')
6
- require_jar('io.netty', 'netty-common', '4.1.100.Final')
7
- require_jar('io.netty', 'netty-transport', '4.1.100.Final')
8
- require_jar('io.netty', 'netty-handler', '4.1.100.Final')
9
- require_jar('io.netty', 'netty-transport-native-unix-common', '4.1.100.Final')
4
+ require_jar('io.netty', 'netty-buffer', '4.1.109.Final')
5
+ require_jar('io.netty', 'netty-codec', '4.1.109.Final')
6
+ require_jar('io.netty', 'netty-common', '4.1.109.Final')
7
+ require_jar('io.netty', 'netty-transport', '4.1.109.Final')
8
+ require_jar('io.netty', 'netty-handler', '4.1.109.Final')
9
+ require_jar('io.netty', 'netty-transport-native-unix-common', '4.1.109.Final')
10
10
  require_jar('org.javassist', 'javassist', '3.24.0-GA')
11
- require_jar('org.logstash.beats', 'logstash-input-beats', '6.8.1')
11
+ require_jar('org.logstash.beats', 'logstash-input-beats', '6.8.3')
data/lib/tasks/test.rake CHANGED
@@ -9,8 +9,6 @@ elsif OS_PLATFORM == "darwin"
9
9
  FILEBEAT_URL = "https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.6.0-darwin-x86_64.tar.gz"
10
10
  end
11
11
 
12
- LSF_URL = "https://download.elastic.co/logstash-forwarder/binaries/logstash-forwarder_#{OS_PLATFORM}_amd64"
13
-
14
12
  require "fileutils"
15
13
  @files=[]
16
14
 
@@ -27,20 +25,9 @@ namespace :test do
27
25
  namespace :integration do
28
26
  task :setup do
29
27
  Rake::Task["test:integration:setup:filebeat"].invoke
30
- Rake::Task["test:integration:setup:lsf"].invoke
31
28
  end
32
29
 
33
30
  namespace :setup do
34
- desc "Download latest stable version of Logstash-forwarder"
35
- task :lsf do
36
- destination = File.join(VENDOR_PATH, "logstash-forwarder")
37
- FileUtils.rm_rf(destination)
38
- FileUtils.mkdir_p(destination)
39
- download_destination = File.join(destination, "logstash-forwarder")
40
- puts "Logstash-forwarder: downloading from #{LSF_URL} to #{download_destination}"
41
- download(LSF_URL, download_destination)
42
- File.chmod(0755, download_destination)
43
- end
44
31
 
45
32
  desc "Download nigthly filebeat for integration testing"
46
33
  task :filebeat do
@@ -60,7 +47,7 @@ namespace :test do
60
47
  end
61
48
 
62
49
  # Uncompress all the file from the archive this only work with
63
- # one level directory structure and its fine for LSF and filebeat packaging.
50
+ # one level directory structure and filebeat packaging.
64
51
  def untar_all(file, destination)
65
52
  untar(file) do |entry|
66
53
  out = entry.full_name.split("/").last
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  s.add_development_dependency "rspec-wait"
40
40
  s.add_development_dependency "logstash-devutils"
41
41
  s.add_development_dependency "logstash-codec-json"
42
- s.add_development_dependency "childprocess" # To make filebeat/LSF integration test easier to write.
42
+ s.add_development_dependency "childprocess" # To make filebeat integration test easier to write.
43
43
 
44
44
  s.platform = 'java'
45
45
  end
@@ -199,7 +199,7 @@ describe LogStash::Inputs::Beats::MessageListener do
199
199
  end
200
200
  end
201
201
 
202
- context "when the message is from LSF" do
202
+ context "when the message is from Lumberjack" do
203
203
  let(:message) { MockMessage.new("abc", { "line" => "hello world", '@metadata' => {} } )}
204
204
 
205
205
  it "extract the event" do
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.8.1
4
+ version: 6.8.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-02-22 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -311,7 +311,6 @@ files:
311
311
  - spec/inputs/beats/tls_spec.rb
312
312
  - spec/inputs/beats_spec.rb
313
313
  - spec/integration/filebeat_spec.rb
314
- - spec/integration/logstash_forwarder_spec.rb
315
314
  - spec/spec_helper.rb
316
315
  - spec/support/client_process_helpers.rb
317
316
  - spec/support/file_helpers.rb
@@ -320,14 +319,14 @@ files:
320
319
  - spec/support/integration_shared_context.rb
321
320
  - spec/support/logstash_test.rb
322
321
  - spec/support/shared_examples.rb
323
- - vendor/jar-dependencies/io/netty/netty-buffer/4.1.100.Final/netty-buffer-4.1.100.Final.jar
324
- - vendor/jar-dependencies/io/netty/netty-codec/4.1.100.Final/netty-codec-4.1.100.Final.jar
325
- - vendor/jar-dependencies/io/netty/netty-common/4.1.100.Final/netty-common-4.1.100.Final.jar
326
- - vendor/jar-dependencies/io/netty/netty-handler/4.1.100.Final/netty-handler-4.1.100.Final.jar
327
- - vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/4.1.100.Final/netty-transport-native-unix-common-4.1.100.Final.jar
328
- - vendor/jar-dependencies/io/netty/netty-transport/4.1.100.Final/netty-transport-4.1.100.Final.jar
322
+ - vendor/jar-dependencies/io/netty/netty-buffer/4.1.109.Final/netty-buffer-4.1.109.Final.jar
323
+ - vendor/jar-dependencies/io/netty/netty-codec/4.1.109.Final/netty-codec-4.1.109.Final.jar
324
+ - vendor/jar-dependencies/io/netty/netty-common/4.1.109.Final/netty-common-4.1.109.Final.jar
325
+ - vendor/jar-dependencies/io/netty/netty-handler/4.1.109.Final/netty-handler-4.1.109.Final.jar
326
+ - vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/4.1.109.Final/netty-transport-native-unix-common-4.1.109.Final.jar
327
+ - vendor/jar-dependencies/io/netty/netty-transport/4.1.109.Final/netty-transport-4.1.109.Final.jar
329
328
  - vendor/jar-dependencies/org/javassist/javassist/3.24.0-GA/javassist-3.24.0-GA.jar
330
- - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/6.8.1/logstash-input-beats-6.8.1.jar
329
+ - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/6.8.3/logstash-input-beats-6.8.3.jar
331
330
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
332
331
  licenses:
333
332
  - Apache License (2.0)
@@ -363,7 +362,6 @@ test_files:
363
362
  - spec/inputs/beats/tls_spec.rb
364
363
  - spec/inputs/beats_spec.rb
365
364
  - spec/integration/filebeat_spec.rb
366
- - spec/integration/logstash_forwarder_spec.rb
367
365
  - spec/spec_helper.rb
368
366
  - spec/support/client_process_helpers.rb
369
367
  - spec/support/file_helpers.rb
@@ -1,108 +0,0 @@
1
- # encoding: utf-8
2
- require "logstash/inputs/beats"
3
- require "logstash/json"
4
- require "fileutils"
5
- require_relative "../support/flores_extensions"
6
- require_relative "../support/file_helpers"
7
- require_relative "../support/integration_shared_context"
8
- require_relative "../support/client_process_helpers"
9
- require "spec_helper"
10
-
11
- LSF_BINARY = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "vendor", "logstash-forwarder", "logstash-forwarder"))
12
-
13
- describe "Logstash-Forwarder", :integration => true do
14
- include ClientProcessHelpers
15
-
16
- before :all do
17
- unless File.exist?(LSF_BINARY)
18
- raise "Cannot find `logstash-forwarder` binary in `vendor/logstash-forwarder` Did you run `bundle exec rake test:integration:setup` before running the integration suite?"
19
- end
20
- end
21
-
22
- include FileHelpers
23
- include_context "beats configuration"
24
-
25
- let(:client_wait_time) { 5 }
26
-
27
- # Filebeat related variables
28
- let(:cmd) { [lsf_exec, "-config", lsf_config_path] }
29
-
30
- let(:lsf_exec) { LSF_BINARY }
31
- let(:registry_file) { File.expand_path(File.join(File.dirname(__FILE__), "..", "..", ".logstash-forwarder")) }
32
- let_tmp_file(:lsf_config_path) { lsf_config }
33
- let(:log_file) { f = Stud::Temporary.file; f.close; f.path }
34
- let(:lsf_config) do
35
- <<-CONFIG
36
- {
37
- "network": {
38
- "servers": [ "#{host}:#{port}" ],
39
- "ssl ca": "#{certificate_authorities}"
40
- },
41
- "files": [
42
- { "paths": [ "#{log_file}" ] }
43
- ]
44
- }
45
- CONFIG
46
- end
47
- #
48
-
49
- before :each do
50
- FileUtils.rm_rf(registry_file) # ensure clean state between runs
51
- start_client
52
- sleep(1)
53
- # let LSF start and than write the logs
54
- File.open(log_file, "a") do |f|
55
- f.write(events.join("\n") + "\n")
56
- end
57
- sleep(1) # give some time to the clients to pick up the changes
58
- end
59
-
60
- after :each do
61
- stop_client
62
- end
63
-
64
- xcontext "Plain TCP" do
65
- include ClientProcessHelpers
66
-
67
- let(:certificate_authorities) { "" }
68
-
69
- it "should not send any events" do
70
- expect(queue.size).to eq(0), @execution_output
71
- end
72
- end
73
-
74
- context "TLS" do
75
- context "Server Verification" do
76
- let(:input_config) do
77
- super().merge({
78
- "ssl_enabled" => true,
79
- "ssl_certificate" => certificate_file,
80
- "ssl_key" => certificate_key_file,
81
- })
82
- end
83
-
84
- let(:certificate_data) { Flores::PKI.generate }
85
- let_tmp_file(:certificate_file) { certificate_data.first }
86
- let_tmp_file(:certificate_key_file) { convert_to_pkcs8(certificate_data.last) }
87
- let(:certificate_authorities) { certificate_file }
88
-
89
- context "self signed certificate" do
90
- include_examples "send events"
91
- end
92
-
93
- context "with large batches" do
94
- let(:number_of_events) { 10_000 }
95
- include_examples "send events"
96
- end
97
-
98
- context "invalid CA on the client" do
99
- let(:invalid_data) { Flores::PKI.generate }
100
- let(:certificate_authorities) { f = Stud::Temporary.file; f.close; f.path }
101
-
102
- it "should not send any events" do
103
- expect(queue.size).to eq(0), @execution_output
104
- end
105
- end
106
- end
107
- end
108
- end