---
type: api
title: Get enrich stats
description: Returns enrich coordinator statistics and information about enrich policies that are currently executing.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/operation/operation-enrich-stats
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/operation/operation-enrich-stats
products:
  - Elasticsearch
---

# Get enrich stats

Availability: 7.5+

## Paths

- `GET` `/_enrich/_stats`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#bearerauth)

## Description

Returns enrich coordinator statistics and information about enrich policies that are currently executing.

## Query String Parameters

- `master_timeout` (string Duration · default: 30s)
  Period to wait for a connection to the master node.

## Response

`application/json`

- `coordinator_stats` ([] CoordinatorStats)
  Objects containing information about each coordinating ingest node for configured enrich processors.
  - `executed_searches_total` (number)
  - `node_id` (string Id)
  - `queue_size` (number)
  - `remote_requests_current` (number)
  - `remote_requests_total` (number)
- `executing_policies` ([] ExecutingPolicy)
  Objects containing information about each enrich policy that is currently executing.
  - `name` (string Name)
  - `task` ({} TaskInfo)
    - `action` (string)
    - `cancelled` (boolean)
    - `cancellable` (boolean)
    - `description` (string)
      Human readable text that identifies the particular request that the task is performing.
For example, it might identify the search request being performed by a search task.
Other kinds of tasks have different descriptions, like `_reindex` which has the source and the destination, or `_bulk` which just has the number of requests and the destination indices.
Many requests will have only an empty description because more detailed information about the request is not easily available or particularly helpful in identifying the request.
    - `headers` (map string to string)
    - `id` (number)
    - `node` (string)
    - `running_time` (string Duration)
    - `running_time_in_nanos` (DurationValueUnitNanos)
    - `start_time_in_millis` (EpochTimeUnitMillis)
    - `status` (object)
      The internal status of the task, which varies from task to task.
The format also varies.
While the goal is to keep the status for a particular task consistent from version to version, this is not always possible because sometimes the implementation changes.
Fields might be removed from the status for a particular request so any parsing you do of the status might break in minor releases.
    - `type` (string)
    - `parent_task_id` (number | string TaskId)
- `cache_stats` ([] CacheStats)
  Objects containing information about the enrich cache stats on each ingest node.
  - `node_id` (string Id)
  - `count` (number)
  - `hits` (number)
  - `hits_time_in_millis` (DurationValueUnitMillis)
  - `misses` (number)
  - `misses_time_in_millis` (DurationValueUnitMillis)
  - `evictions` (number)
  - `size_in_bytes` (number)
## Code Examples

#### Console

```console
GET /_enrich/_stats
```

#### JavaScript

```javascript
const response = await client.enrich.stats();
```

#### Python

```python
resp = client.enrich.stats()
```

#### curl

```curl
curl -X GET "$ELASTICSEARCH_URL/_enrich/_stats" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.enrich().stats(s -> s);
```

#### C#

```c#
var response = await client.Enrich.StatsAsync();
```

#### PHP

```php
$resp = $client->enrich()->stats();
```

#### Ruby

```ruby
response = client.enrich.stats
```

