Update usage of beats-input obsoleted SSL params in the core. (#16753)

This commit is contained in:
Mashhur 2024-12-04 11:12:21 -08:00 committed by GitHub
parent e3265d93e8
commit 4d9942d68a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View file

@ -73,7 +73,7 @@ Start the downstream instance of Logstash:
[source,shell]
----
bin/logstash -e 'input { beats { codec => json port => 5000 ssl => true ssl_certificate => "lumberjack.cert" ssl_key => "lumberjack.key"} }'
bin/logstash -e 'input { beats { codec => json port => 5000 ssl_enabled => true ssl_certificate => "lumberjack.cert" ssl_key => "lumberjack.key"} }'
----
This sample command sets port 5000 to listen for incoming Beats input.

View file

@ -41,11 +41,11 @@ data:
input {
beats {
port => "5044"
ssl => true
ssl_enabled => true
ssl_certificate_authorities => ["/usr/share/logstash/config/ca.crt"]
ssl_certificate => "/usr/share/logstash/config/server.crt"
ssl_key => "/usr/share/logstash/config/server.pkcs8.key"
ssl_verify_mode => "force_peer"
ssl_client_authentication => "required"
}
}
output {

View file

@ -28,11 +28,11 @@ On {ls}, configure the server certificates to the pipeline:
input {
beats {
port => "5044"
ssl => true
ssl_enabled => true
ssl_certificate_authorities => ["/usr/share/logstash/config/ca.crt"]
ssl_certificate => "/usr/share/logstash/config/server.crt"
ssl_key => "/usr/share/logstash/config/server.pkcs8.key"
ssl_verify_mode => "force_peer"
ssl_client_authentication => "required"
}
}
--

View file

@ -13,7 +13,7 @@ config:
tls_server_auth: |-
input {
beats {
ssl => true
ssl_enabled => true
port => 5044
ssl_certificate => '<%=options[:ssl_certificate]%>'
ssl_key => '<%=options[:ssl_key]%>'
@ -23,11 +23,11 @@ config:
tls_mutual_auth: |-
input {
beats {
ssl => true
ssl_enabled => true
port => 5044
ssl_certificate => '<%=options[:ssl_certificate]%>'
ssl_key => '<%=options[:ssl_key]%>'
ssl_verify_mode => "force_peer"
ssl_client_authentication => "required"
ssl_certificate_authorities => '<%=options[:ssl_certificate]%>'
}
}