Creating Users in Elasticsearch for ElastiFlow
This guide explains how to configure internal users and roles in Elasticsearch to provide read-only access to ElastiFlow indices.
Create a Role
- Log into Kibana with administrative privileges.
- Navigate to Stack Management → Security → Roles.
- Click Create role and name it
elastiflow-readonly
. - Under Cluster privileges, add:
monitor
- Under Index privileges:
- Indices:
elastiflow-*
- Privileges:
read
,view_index_metadata
- Indices:
- (Optional) Add
.kibana*
withread
if access to dashboards is needed. - Click Create role.
Create a User
- Go to Stack Management → Security → Users.
- Click Create user.
- Fill in the username and password.
- Assign the
elastiflow-readonly
role. - Save the user.
Test the New User
- Log into Kibana with the new user account.
- Go to Discover and verify access to
elastiflow-*
data.
External Authentication Mapping (Optional)
If using LDAP or SAML:
- Map the backend role from your IdP to the internal role
elastiflow-readonly
under Roles →elastiflow-readonly
→ Mapped backend roles.
This enables secure, read-only access to ElastiFlow data via Kibana.