logstash-input-beats 3.1.4-java → 3.1.5-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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/logstash-input-beats_jars.rb +1 -1
- data/lib/logstash/inputs/beats.rb +3 -3
- data/lib/tasks/test.rake +2 -2
- data/spec/integration/filebeat_spec.rb +38 -9
- data/vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/{3.1.4/logstash-input-beats-3.1.4.jar → 3.1.5/logstash-input-beats-3.1.5.jar} +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0e93c97b5dfb652577d7c9d54cf610fa79c3181
|
4
|
+
data.tar.gz: cb73d6cdea7be0e3fc2392f7a5b6c990cdedee84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 482e8320f3d5557c4f5b6957bb7a4a51350135bda91fd5b999eda3b328d2a762b8b944e776c5b21d0ab7d70bfb641f78daae7bc42ebf4d2004afcd10c3fa8f12
|
7
|
+
data.tar.gz: d4d9599c355c60f3bfe13ec2392f6a5649c8cefcfb7eeebe3b8a6bf23d879e95ef52e00688aa6152259849ed3619ef817c6ec5338edc83a49b5499ec16a5fa14
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 3.1.5
|
2
|
+
- Fix an issue when using a passphrase was raising a TypeError #138
|
3
|
+
- Fix the filebeat integration suite to use the new `ssl` option instead of `tls`
|
4
|
+
- Use correct log4j logger call to be compatible with 2.4
|
5
|
+
|
1
6
|
## 3.1.4
|
2
7
|
- Add a note concerning the requirement of the PKCS8 format for the private key.
|
3
8
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.5
|
@@ -9,4 +9,4 @@ require_jar('com.fasterxml.jackson.core', 'jackson-annotations', '2.7.5')
|
|
9
9
|
require_jar('com.fasterxml.jackson.core', 'jackson-databind', '2.7.5')
|
10
10
|
require_jar('com.fasterxml.jackson.module', 'jackson-module-afterburner', '2.7.5')
|
11
11
|
require_jar('log4j', 'log4j', '1.2.17')
|
12
|
-
require_jar('org.logstash.beats', 'logstash-input-beats', '3.1.
|
12
|
+
require_jar('org.logstash.beats', 'logstash-input-beats', '3.1.5')
|
@@ -141,8 +141,8 @@ class LogStash::Inputs::Beats < LogStash::Inputs::Base
|
|
141
141
|
|
142
142
|
def register
|
143
143
|
# Logstash 2.4
|
144
|
-
if defined?(LogStash::
|
145
|
-
LogStash::
|
144
|
+
if defined?(LogStash::Logger) && LogStash::Logger.respond_to?(:setup_log4j)
|
145
|
+
LogStash::Logger.setup_log4j(@logger)
|
146
146
|
end
|
147
147
|
|
148
148
|
if !@ssl
|
@@ -169,7 +169,7 @@ class LogStash::Inputs::Beats < LogStash::Inputs::Base
|
|
169
169
|
def create_server
|
170
170
|
server = org.logstash.beats.Server.new(@port)
|
171
171
|
if @ssl
|
172
|
-
ssl_builder = org.logstash.netty.SslSimpleBuilder.new(ssl_certificate, ssl_key, ssl_key_passphrase)
|
172
|
+
ssl_builder = org.logstash.netty.SslSimpleBuilder.new(@ssl_certificate, @ssl_key, @ssl_key_passphrase.nil? ? nil : @ssl_key_passphrase.value)
|
173
173
|
.setProtocols(convert_protocols)
|
174
174
|
.setCipherSuites(normalized_ciphers)
|
175
175
|
|
data/lib/tasks/test.rake
CHANGED
@@ -3,9 +3,9 @@ OS_PLATFORM = RbConfig::CONFIG["host_os"]
|
|
3
3
|
VENDOR_PATH = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "vendor"))
|
4
4
|
|
5
5
|
if OS_PLATFORM == "linux"
|
6
|
-
FILEBEAT_URL = "https://beats-nightlies.s3.amazonaws.com/filebeat/filebeat-
|
6
|
+
FILEBEAT_URL = "https://beats-nightlies.s3.amazonaws.com/filebeat/filebeat-6.0.0-alpha1-SNAPSHOT-linux-x86_64.tar.gz"
|
7
7
|
elsif OS_PLATFORM == "darwin"
|
8
|
-
FILEBEAT_URL = "https://beats-nightlies.s3.amazonaws.com/filebeat/filebeat-
|
8
|
+
FILEBEAT_URL = "https://beats-nightlies.s3.amazonaws.com/filebeat/filebeat-6.0.0-alpha1-SNAPSHOT-darwin-x86_64.tar.gz"
|
9
9
|
end
|
10
10
|
|
11
11
|
LSF_URL = "https://download.elastic.co/logstash-forwarder/binaries/logstash-forwarder_#{OS_PLATFORM}_amd64"
|
@@ -33,13 +33,12 @@ describe "Filebeat", :integration => true do
|
|
33
33
|
|
34
34
|
let(:filebeat_exec) { FILEBEAT_BINARY }
|
35
35
|
|
36
|
-
let_empty_tmp_file(:registry_file)
|
37
36
|
let(:filebeat_config) do
|
38
37
|
{
|
39
38
|
"filebeat" => {
|
40
39
|
"prospectors" => [{ "paths" => [log_file], "input_type" => "log" }],
|
41
|
-
"
|
42
|
-
"
|
40
|
+
"scan_frequency" => "1s",
|
41
|
+
"idle_timeout" => "1s"
|
43
42
|
},
|
44
43
|
"output" => {
|
45
44
|
"logstash" => { "hosts" => ["#{host}:#{port}"] },
|
@@ -84,14 +83,14 @@ describe "Filebeat", :integration => true do
|
|
84
83
|
"output" => {
|
85
84
|
"logstash" => {
|
86
85
|
"hosts" => ["#{host}:#{port}"],
|
87
|
-
"
|
86
|
+
"ssl" => { "certificate_authorities" => certificate_authorities }
|
88
87
|
},
|
89
88
|
"logging" => { "level" => "debug" }
|
90
89
|
}})
|
91
90
|
end
|
92
91
|
|
93
92
|
let(:input_config) do
|
94
|
-
super.merge({
|
93
|
+
super.merge({
|
95
94
|
"ssl" => true,
|
96
95
|
"ssl_certificate" => certificate_file,
|
97
96
|
"ssl_key" => certificate_key_file
|
@@ -106,8 +105,38 @@ describe "Filebeat", :integration => true do
|
|
106
105
|
|
107
106
|
context "self signed certificate" do
|
108
107
|
include_examples "send events"
|
108
|
+
|
109
|
+
|
110
|
+
# Refactor this to use Flores's PKI instead of openssl command line
|
111
|
+
# see: https://github.com/jordansissel/ruby-flores/issues/7
|
112
|
+
context "with a passphrase" do
|
113
|
+
let!(:temporary_directory) { Stud::Temporary.pathname }
|
114
|
+
let(:certificate_key_file) { ::File.join(temporary_directory, "certificate.key") }
|
115
|
+
let(:certificate_key_file_pkcs8) { ::File.join(temporary_directory, "certificate.pkcs8.key") }
|
116
|
+
let(:certificate_file) { ::File.join(temporary_directory, "certificate.crt") }
|
117
|
+
let(:passphrase) { "foobar" }
|
118
|
+
let(:beats) {
|
119
|
+
# Since we are using a shared context, this not obvious to make sure the openssl command
|
120
|
+
# is run before starting beats so we do it just before initializing it.
|
121
|
+
FileUtils.mkdir_p(temporary_directory)
|
122
|
+
openssl_cmd = "openssl req -x509 -batch -newkey rsa:2048 -keyout #{temporary_directory}/certificate.key -out #{temporary_directory}/certificate.crt -subj /CN=localhost -passout pass:#{passphrase}"
|
123
|
+
system(openssl_cmd)
|
124
|
+
convert_key_cmd = "openssl pkcs8 -topk8 -in #{temporary_directory}/certificate.key -out #{certificate_key_file_pkcs8} -passin pass:#{passphrase} -passout pass:#{passphrase}"
|
125
|
+
system(convert_key_cmd)
|
126
|
+
|
127
|
+
LogStash::Inputs::Beats.new(input_config)
|
128
|
+
}
|
129
|
+
let(:input_config) {
|
130
|
+
super.merge({
|
131
|
+
"ssl_key_passphrase" => passphrase,
|
132
|
+
"ssl_key" => certificate_key_file_pkcs8
|
133
|
+
})}
|
134
|
+
|
135
|
+
include_examples "send events"
|
136
|
+
end
|
109
137
|
end
|
110
138
|
|
139
|
+
|
111
140
|
context "CA root" do
|
112
141
|
include_context "Root CA"
|
113
142
|
|
@@ -134,10 +163,10 @@ describe "Filebeat", :integration => true do
|
|
134
163
|
"output" => {
|
135
164
|
"logstash" => {
|
136
165
|
"hosts" => ["#{host}:#{port}"],
|
137
|
-
"
|
166
|
+
"ssl" => {
|
138
167
|
"certificate_authorities" => certificate_authorities,
|
139
168
|
"certificate" => certificate_file,
|
140
|
-
"
|
169
|
+
"key" => certificate_key_file
|
141
170
|
}
|
142
171
|
},
|
143
172
|
"logging" => { "level" => "debug" }
|
@@ -215,10 +244,10 @@ describe "Filebeat", :integration => true do
|
|
215
244
|
"output" => {
|
216
245
|
"logstash" => {
|
217
246
|
"hosts" => ["#{host}:#{port}"],
|
218
|
-
"
|
247
|
+
"ssl" => {
|
219
248
|
"certificate_authorities" => certificate_authorities,
|
220
249
|
"certificate" => secondary_client_certificate_file,
|
221
|
-
"
|
250
|
+
"key" => secondary_client_certificate_key_file
|
222
251
|
}
|
223
252
|
},
|
224
253
|
"logging" => { "level" => "debug" }
|
Binary file
|
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: 3.1.
|
4
|
+
version: 3.1.5
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -268,7 +268,7 @@ files:
|
|
268
268
|
- vendor/jar-dependencies/io/netty/netty-tcnative-boringssl-static/1.1.33.Fork17/netty-tcnative-boringssl-static-1.1.33.Fork17.jar
|
269
269
|
- vendor/jar-dependencies/log4j/log4j/1.2.17/log4j-1.2.17.jar
|
270
270
|
- vendor/jar-dependencies/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar
|
271
|
-
- vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/3.1.
|
271
|
+
- vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/3.1.5/logstash-input-beats-3.1.5.jar
|
272
272
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
273
273
|
licenses:
|
274
274
|
- Apache License (2.0)
|