Hi,
I have created a user to be used for creating the monthly logs in Elasticsearch cluster we have.
I just want this user to create a new index every month and push data into it. I do not want it to update or delete index and documents.
Keeping this in mind I gave this user create_index (for creating indices) and create privilege (to index documents). I skipped index privilege because it also allows user to update documents.
This is not working. It is not creating index and putting data into the cluster.
However when I give it write privilege along with create_index and create privilege, it works !!!
I do not want to give it write privilege because it includes permission to index, update, and delete documents as well as performing bulk operations.
I think I am making some silly mistake here. Can experts point out what privilege i should give?
_Additional information: The data is sent from the application by the serilog elasticsearch sink. And it looks like that it invokes Bulk API to push data.
This is old link but here is what it says:
Write : Privilege to perform all write operations on documents, including the ability to index, update, and delete documents as well as perform bulk operations. If write is granted on the .scripts index, it includes the ability to put and delete indexed scripts.
Looks like Bulk API operations does come with Write privilege only. Will like experts to chip in.
More information:
I am able to put an index into the cluster via curl:
curl -u TonyStark:Pepper143 -XPUT 'http://StarkServer9200/TopSecret-01-2017.09/Coffee/1?pretty' -H 'Content-Type: application/json' -d' {"user" : "kimchy","post_date" : "2009-11-15T14:12:12","message" : "Blah"}'
Elasticsearch version: 5.2.1
Kibana : 5.2.1
I am using serilog elasticsearch sink to push data from my application to the elasticsearch instance.