mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
parent
1ceda5a27f
commit
19fcfe6e3b
1 changed files with 1 additions and 5 deletions
|
@ -69,7 +69,7 @@ module LogStash module Modules class LogStashConfig
|
|||
password = @settings["var.elasticsearch.password"]
|
||||
lines = ["hosts => #{hosts}", "index => \"#{index}\""]
|
||||
lines.push(user ? "user => \"#{user}\"" : nil)
|
||||
lines.push(password ? "password => \"#{password_value(password)}\"" : nil)
|
||||
lines.push(password ? "password => \"#{password.value}\"" : nil)
|
||||
lines.push(type_string ? "document_type => #{type_string}" : nil)
|
||||
lines.push("ssl => #{@settings.fetch('var.elasticsearch.ssl.enabled', false)}")
|
||||
if cacert = @settings["var.elasticsearch.ssl.certificate_authority"]
|
||||
|
@ -84,10 +84,6 @@ elasticsearch {
|
|||
CONF
|
||||
end
|
||||
|
||||
def password_value(password)
|
||||
password.is_a?(LogStash::Util::Password) ? password.value : password
|
||||
end
|
||||
|
||||
def config_string
|
||||
# process the template and settings
|
||||
# send back as a string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue