Configure service-level objective (SLO) access
Important
To create and manage SLOs, you need an appropriate license and an Elasticsearch cluster with both transform
and ingest
node roles present.
You can enable access to SLOs in two different ways:
- Creating the following roles, depending on the type of access needed:
- SLO Editor β Create, edit, and manage SLOs and their historical summaries.
- SLO Viewer β Check SLOs and their historical summaries.
- Using the
editor
built-in role. This role grants full access to all features in Kibana (including the Observability solution) and read-only access to data indices. Users assigned to this role can create, edit, and manage SLOs. ::::{note}
Theeditor
built-in role grants write access to all Kibana apps. If you want to limit access to the SLOs only, you have to manually create and assign the mentioned roles. ::::
To create a role:
- To open Roles, find Stack Management in the main menu or use the global search field.
- On the Roles page, click Create role.
Create an SLO Editor role ΒΆ
Set the following privileges for the SLO Editor role:
- Under Index privileges in the Elasticsearch section, add
.slo-observability-*
to the Indices field andread
,view_index_metadata
,write
, andmanage
to the Privileges field. - Click Add index privilege.
- In the Indices field, add the indices for which you plan to create SLOs. Then, add
read
andview_index_metadata
to the Privileges field. The following example showslogs-*
, but you can specify any indices. :::{image} ../../../images/observability-slo-es-priv-editor.png
:alt: Cluster and index privileges for SLO Editor role
:class: screenshot
::: - In the Kibana section, click Add Kibana privilege.
- From the Spaces dropdown, either select any specific spaces you want the role to apply to, or select All Spaces.
- Set Observability β SLOs to
All
. :::{image} ../../../images/observability-slo-kibana-priv-all.png
:alt: SLO Kibana all privileges
:class: screenshot
::: - Click Create Role at the bottom of the page and assign the role to the relevant users.
Create an SLO Viewer role ΒΆ
Set the following privileges for the SLO Read role:
- Under Index privileges in the Elasticsearch section, add
.slo-observability-*
to the Indices field andread
andview_index_metadata
to the Privileges field. :::{image} ../../../images/observability-slo-es-priv-viewer.png
:alt: Index privileges for SLO Viewer role
:class: screenshot
::: - In the Kibana section, click Add Kibana privilege.
- From the Spaces dropdown, either select any specific spaces you want the role to apply to, or select All Spaces.
- Set Observability β SLOs to
Read
. :::{image} ../../../images/observability-slo-kibana-priv-read.png
:alt: SLO Kibana read privileges
:class: screenshot
::: - Click Create Role at the bottom of the page and assign the role to the relevant users.