A newer version is available. For the latest information, see the
current release documentation.
Elasticsearch Security
editElasticsearch Security
editIf you use Elasticsearch security, you’ll need to enable certain privileges for users that would like to access the Uptime app. For example, create user and support roles to implement the privileges:
Create a role
editYou’ll need a role that lets you access the Heartbeat indices, which by default are heartbeat-*
.
You can create this with the following request:
PUT /_security/role/uptime { "indices" : [ { "names" : [ "heartbeat-*" ], "privileges" : [ "read", "view_index_metadata" ], "field_security" : { "grant" : [ "*" ] }, "allow_restricted_indices" : false } ], "transient_metadata" : { "enabled" : true } }
Assign the role to a user
editNext, you’ll need to create a user with both the uptime
role, and another role with sufficient Kibana privileges,
such as the kibana_admin
role.
You can do this with the following request:
PUT /_security/user/jacknich { "password" : "j@rV1s", "roles" : [ "uptime", "kibana_admin" ], "full_name" : "Jack Nicholson", "email" : "[email protected]", "metadata" : { "intelligence" : 7 } }