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 }
}