Unknown setting 'user/password' for elasticsearch {:level=>:error}


(Raman Saini) #1

Hi all,

Please help to fix this issue. I am using elastic search with shield and logstash. When i try to run logstash i am getting below error

Unknown setting 'user' for elasticsearch {:level=>:error}
Unknown setting 'password' for elasticsearch {:level=>:error}
Error: Something is wrong with your configuration.

My configuration file is below

input {
file {
path => "/home/apache2//logs/access_log"
type => "apache_access"
}
}
filter {
if [type] == "apache_access" {
grok {
match => { "message" => "%{COMMONAPACHELOG}" }
}
date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
}
}

output {
elasticsearch { host => poc1 protocol => http user => test_admin password => abc123 }
stdout { codec => rubydebug }
}


(Magnus B├Ąck) #2

I believe authentication support was added in Logstash 1.5 and I'm guessing you're using an older release.


(Raman Saini) #3

ohh. I see. Thanks for response.


(system) #4