﻿---
title: Elasticsearch pending_tasks metricset
description: This is the pending_tasks metricset of the Elasticsearch module. This is a default metricset. If the host module is unconfigured, this metricset is enabled...
url: https://www.elastic.co/elastic/docs-builder/docs/3016/reference/beats/metricbeat/metricbeat-metricset-elasticsearch-pending_tasks
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Elasticsearch pending_tasks metricset
This is the `pending_tasks` metricset of the Elasticsearch module.
This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.

## Fields

For a description of each field in the metricset, see the [exported fields](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/beats/metricbeat/exported-fields-elasticsearch) section.
Here is an example document generated by this metricset:
```json
{
    "@timestamp": "2018-05-03T20:58:17.379Z",
    "metricset": {
        "rtt": 2487,
        "namespace": "elasticsearch.cluster.pending_task",
        "name": "pending_tasks",
        "module": "elasticsearch",
        "host": "localhost:9200"
    },
    "elasticsearch": {
        "cluster": {
            "id": "3LbUkLkURz--FR-YO0wLNA",
            "name": "es1",
            "pending_task": {
                "insert_order": 47,
                "priority": "HIGH",
                "source": "put-mapping",
                "time_in_queue.ms": 34
            }
        }
    },
    "agent": {
        "name": "host.example.com",
        "hostname": "host.example.com"
    }
}
```