---
type: api
title: Health check on Privilege Monitoring
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-privmonhealth
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-privmonhealth
products:
  - Kibana
---

# Health check on Privilege Monitoring

deprecated

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/entity_analytics/monitoring/privileges/health`
- `GET` `/s/{space_id}/api/entity_analytics/monitoring/privileges/health`

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

**Deprecated in 9.4.0.** Returns the current health status of the Privilege Monitoring Engine, including engine status, error details, and user count statistics.

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Response

Successful response

`application/json`

- `error` (object)
  - `message` (string)
- `status` (enum)
  The status of the Privilege Monitoring Engine
  Values: `started`, `error`, `disabled`, `not_installed`
- `users` (object)
  User statistics for privilege monitoring
  - `current_count` (integer)
    Current number of privileged users being monitored
  - `max_allowed` (integer)
    Maximum number of privileged users allowed to be monitored
## Code examples

#### Console

```console
GET kbn:/api/entity_analytics/monitoring/privileges/health
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/entity_analytics/monitoring/privileges/health" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Healthy privilege monitoring engine

```json
{
  "status": "started",
  "users": {
    "current_count": 42,
    "max_allowed": 1000
  }
}
```

