I've been trying to send my Logstash output to an Elasticsearch instance being hosted on AWS. Following the instructions here I've set up my conf file's output as the following:
output {
elasticsearch {
hosts => ["host_url"]
index => "logstash-dev-device-data"
document_type => "logstash-device-data"
manage_template => true
template => "./logstash_idx_mapping.json"
template_name => "logstash_idx_mapping_template"
user => "username"
password => "${LOGSTASH_PASSWORD}"
}
}
In kibana, I have a user set up with the username and password I'm passing in the config output above.
I'm still getting the following error
Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Something is wrong with your configuration.", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/config/mixin.rb:86:in 'config_init'"
Does anyone know what else I can try for this? Thanks!