I am trying to run logstash pipeline and getting below exception
13:10:00.102 [[main]>worker0] WARN logstash.outputs.elasticsearch - Failed action. {:status=>403, :action=>["index", {:_id=>"notifyuserprofile-webservice-pega", :_index=>"myindex", :_type=>"inventory", :_routing=>nil}, 2016-12-21T18:10:00.051Z %{host} %{message}], :response=>{"index"=>{"_index"=>"myindex", "_type"=>"xxxx", "_id"=>"12345", "status"=>403, "error"=>{"type"=>"security_exception", "reason"=>" myindex[indices:data/write/bulk[s]] is unauthorized for user [logstash_internal]"}}}}
followed Logstash Reference [8.11] | Elastic
and updated roles for user logstash_internal
{
"logstash_writer": {
"cluster": [
"manage_index_templates",
"monitor",
"all",
"manage",
"manage_security"
],
"indices": [
{
"names": [
"myindex-*"
],
"privileges": [
"write",
"delete",
"create_index",
"create",
"all"
]
}
],
"run_as": ,
"metadata": {}
}
}
appreciate any help here