I am receiving the following error when try to ingest documents Logstash to Elasticsearch:
[2018-02-02T11:54:35,329][INFO ][logstash.outputs.elasticsearch] retrying failed action with response code: 403 ({"type"=>"security_exception", "reason"=>"no permissions for [indices:data/write/index, indices:data/write/bulk[s]] and User [name=logstash, roles=[logstash], requestedTenant=null]"})
Logstash output:
output {
elasticsearch {
user => logstash
password => logstash
ssl => true
ssl_certificate_verification => true
cacert => "/etc/elasticsearch/root-ca.pem"
index => "cdrs4"
}
}
I used the demo installer. Would I need to change sg_roles.yml? I have not changed anything in this file. I am assuming I would have to add permission for indices:data/write/index, indices:data/write/bulk just not sure of the syntax and how to add it.
Thank you, Frank