I am trying out elastic search for the first time and I want to create a role which can access only a specific index (already created). How can I proceed with it?
Asked
Active
Viewed 490 times
1 Answers
0
Depending on what version of Elasticsearch is used, you can decide to install either the shield
(less than 5.x) plugin or x-pack
(paid subscription with a free trial period).
With x-pack installed, if you want to manage Roles in Kibana,
- Login to Kibana
- Navigate to Management -> Roles.
- click on +Create role
- Provide a name to your role
- In the index privileges section, provide the index name and privileges required (read, write etc.)
- save
With shield, you can manage roles using this document.

harishkb
- 406
- 3
- 7
-
Thanks a lot for prompt reply. Actually I already tried out the steps you’ve mentioned above. – Aditya Feb 20 '18 at 14:12
-
The scenario is: let’s say I have created an index ‘Shakespeare’. I tried creating a user with index association with Shakespeare but I don’t get anything after logging in as that user. – Aditya Feb 20 '18 at 14:15
-
If you're using Kibana to view the documents as user-x, you need to add user-x to kibana_user role along with the role that provides read access. – harishkb Feb 20 '18 at 15:12
-
Tried out this option as well. But it didn’t meet our requirements exactly. But still, thanks a lot for so prompt replies – Aditya Feb 21 '18 at 08:53