---
title: Telegraf Documentation
description: Telegraf plugin for collecting metrics from Elasticsearch
url: https://docs.influxdata.com/telegraf/v1/input-plugins/elasticsearch/
estimated_tokens: 9788
product: Telegraf
version: v1
---

-   Telegraf v0.1.5+

# Elasticsearch Input Plugin

This plugin queries endpoints of a [Elasticsearch](https://www.elastic.co/) instance to obtain [node statistics](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html) and optionally [cluster-health](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html) metrics. Additionally, the plugin is able to query [cluster](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-stats.html), [indices and shard](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html) statistics for the master node.

Specific statistics information can change between Elasticsearch versions. In general, this plugin attempts to stay as version-generic as possible by tagging high-level categories only and creating unique field names of whatever statistics names are provided at the mid-low level.

**Introduced in:** Telegraf v0.1.5 **Tags:** server **OS support:** all

## Global configuration options

Plugins support additional global and plugin configuration settings for tasks such as modifying metrics, tags, and fields, creating aliases, and configuring plugin ordering. See [CONFIGURATION.md](/telegraf/v1/configuration/#plugins) for more details.

## Configuration

```toml
# Read stats from one or more Elasticsearch servers or clusters
[[inputs.elasticsearch]]
  ## specify a list of one or more Elasticsearch servers
  ## you can add username and password to your url to use basic authentication:
  ## servers = ["http://user:pass@localhost:9200"]
  servers = ["http://localhost:9200"]

  ## HTTP headers to send with each request
  # headers = { "X-Custom-Header" = "Custom" }

  ## When local is true (the default), the node will read only its own stats.
  ## Set local to false when you want to read the node stats from all nodes
  ## of the cluster.
  local = true

  ## Set cluster_health to true when you want to obtain cluster health stats
  cluster_health = false

  ## Adjust cluster_health_level when you want to obtain detailed health stats
  ## The options are
  ##  - indices (default)
  ##  - cluster
  # cluster_health_level = "indices"

  ## Set cluster_stats to true when you want to obtain cluster stats.
  cluster_stats = false

  ## Only gather cluster_stats from the master node.
  ## To work this require local = true
  cluster_stats_only_from_master = true

  ## Gather stats from the enrich API
  # enrich_stats = false

  ## Indices to collect; can be one or more indices names or _all
  ## Use of wildcards is allowed. Use a wildcard at the end to retrieve index
  ## names that end with a changing value, like a date.
  indices_include = ["_all"]

  ## One of "shards", "cluster", "indices"
  ## Currently only "shards" is implemented
  indices_level = "shards"

  ## node_stats is a list of sub-stats that you want to have gathered.
  ## Valid options are "indices", "os", "process", "jvm", "thread_pool",
  ## "fs", "transport", "http", "breaker". Per default, all stats are gathered.
  # node_stats = ["jvm", "http"]

  ## HTTP Basic Authentication username and password.
  # username = ""
  # password = ""

  ## Optional TLS Config
  # tls_ca = "/etc/telegraf/ca.pem"
  # tls_cert = "/etc/telegraf/cert.pem"
  # tls_key = "/etc/telegraf/key.pem"
  ## Use TLS but skip chain & host verification
  # insecure_skip_verify = false

  ## If 'use_system_proxy' is set to true, Telegraf will check env vars such as
  ## HTTP_PROXY, HTTPS_PROXY, and NO_PROXY (or their lowercase counterparts).
  ## If 'use_system_proxy' is set to false (default) and 'http_proxy_url' is
  ## provided, Telegraf will use the specified URL as HTTP proxy.
  # use_system_proxy = false
  # http_proxy_url = "http://localhost:8888"

  ## Sets the number of most recent indices to return for indices that are
  ## configured with a date-stamped suffix. Each 'indices_include' entry
  ## ending with a wildcard (*) or glob matching pattern will group together
  ## all indices that match it, and  sort them by the date or number after
  ## the wildcard. Metrics then are gathered for only the
  ## 'num_most_recent_indices' amount of most  recent indices.
  # num_most_recent_indices = 0
```

## Metrics

Emitted when `cluster_health = true`:

-   elasticsearch\_cluster\_health
    -   tags:
        -   name
    -   fields:
        -   active\_primary\_shards (integer)
        -   active\_shards (integer)
        -   active\_shards\_percent\_as\_number (float)
        -   delayed\_unassigned\_shards (integer)
        -   initializing\_shards (integer)
        -   number\_of\_data\_nodes (integer)
        -   number\_of\_in\_flight\_fetch (integer)
        -   number\_of\_nodes (integer)
        -   number\_of\_pending\_tasks (integer)
        -   relocating\_shards (integer)
        -   status (string, one of green, yellow or red)
        -   status\_code (integer, green = 1, yellow = 2, red = 3),
        -   task\_max\_waiting\_in\_queue\_millis (integer)
        -   timed\_out (boolean)
        -   unassigned\_shards (integer)

Emitted when `cluster_health = true` and `cluster_health_level = "indices"`:

-   elasticsearch\_cluster\_health\_indices
    -   tags:
        -   index
        -   name
    -   fields:
        -   active\_primary\_shards (integer)
        -   active\_shards (integer)
        -   initializing\_shards (integer)
        -   number\_of\_replicas (integer)
        -   number\_of\_shards (integer)
        -   relocating\_shards (integer)
        -   status (string, one of green, yellow or red)
        -   status\_code (integer, green = 1, yellow = 2, red = 3),
        -   unassigned\_shards (integer)

Emitted when `cluster_stats = true`:

-   elasticsearch\_clusterstats\_indices
    
    -   tags:
        -   cluster\_name
        -   node\_name
        -   status
    -   fields:
        -   completion\_size\_in\_bytes (float)
        -   count (float)
        -   docs\_count (float)
        -   docs\_deleted (float)
        -   fielddata\_evictions (float)
        -   fielddata\_memory\_size\_in\_bytes (float)
        -   query\_cache\_cache\_count (float)
        -   query\_cache\_cache\_size (float)
        -   query\_cache\_evictions (float)
        -   query\_cache\_hit\_count (float)
        -   query\_cache\_memory\_size\_in\_bytes (float)
        -   query\_cache\_miss\_count (float)
        -   query\_cache\_total\_count (float)
        -   segments\_count (float)
        -   segments\_doc\_values\_memory\_in\_bytes (float)
        -   segments\_fixed\_bit\_set\_memory\_in\_bytes (float)
        -   segments\_index\_writer\_memory\_in\_bytes (float)
        -   segments\_max\_unsafe\_auto\_id\_timestamp (float)
        -   segments\_memory\_in\_bytes (float)
        -   segments\_norms\_memory\_in\_bytes (float)
        -   segments\_points\_memory\_in\_bytes (float)
        -   segments\_stored\_fields\_memory\_in\_bytes (float)
        -   segments\_term\_vectors\_memory\_in\_bytes (float)
        -   segments\_terms\_memory\_in\_bytes (float)
        -   segments\_version\_map\_memory\_in\_bytes (float)
        -   shards\_index\_primaries\_avg (float)
        -   shards\_index\_primaries\_max (float)
        -   shards\_index\_primaries\_min (float)
        -   shards\_index\_replication\_avg (float)
        -   shards\_index\_replication\_max (float)
        -   shards\_index\_replication\_min (float)
        -   shards\_index\_shards\_avg (float)
        -   shards\_index\_shards\_max (float)
        -   shards\_index\_shards\_min (float)
        -   shards\_primaries (float)
        -   shards\_replication (float)
        -   shards\_total (float)
        -   store\_size\_in\_bytes (float)
-   elasticsearch\_clusterstats\_nodes
    
    -   tags:
        -   cluster\_name
        -   node\_name
        -   status
    -   fields:
        -   count\_coordinating\_only (float)
        -   count\_data (float)
        -   count\_ingest (float)
        -   count\_master (float)
        -   count\_total (float)
        -   fs\_available\_in\_bytes (float)
        -   fs\_free\_in\_bytes (float)
        -   fs\_total\_in\_bytes (float)
        -   jvm\_max\_uptime\_in\_millis (float)
        -   jvm\_mem\_heap\_max\_in\_bytes (float)
        -   jvm\_mem\_heap\_used\_in\_bytes (float)
        -   jvm\_threads (float)
        -   jvm\_versions\_0\_count (float)
        -   jvm\_versions\_0\_version (string)
        -   jvm\_versions\_0\_vm\_name (string)
        -   jvm\_versions\_0\_vm\_vendor (string)
        -   jvm\_versions\_0\_vm\_version (string)
        -   network\_types\_http\_types\_security4 (float)
        -   network\_types\_transport\_types\_security4 (float)
        -   os\_allocated\_processors (float)
        -   os\_available\_processors (float)
        -   os\_mem\_free\_in\_bytes (float)
        -   os\_mem\_free\_percent (float)
        -   os\_mem\_total\_in\_bytes (float)
        -   os\_mem\_used\_in\_bytes (float)
        -   os\_mem\_used\_percent (float)
        -   os\_names\_0\_count (float)
        -   os\_names\_0\_name (string)
        -   os\_pretty\_names\_0\_count (float)
        -   os\_pretty\_names\_0\_pretty\_name (string)
        -   process\_cpu\_percent (float)
        -   process\_open\_file\_descriptors\_avg (float)
        -   process\_open\_file\_descriptors\_max (float)
        -   process\_open\_file\_descriptors\_min (float)
        -   versions\_0 (string)

Emitted when the appropriate `node_stats` options are set.

-   elasticsearch\_transport
    
    -   tags:
        -   cluster\_name
        -   node\_attribute\_ml.enabled
        -   node\_attribute\_ml.machine\_memory
        -   node\_attribute\_ml.max\_open\_jobs
        -   node\_attribute\_xpack.installed
        -   node\_host
        -   node\_id
        -   node\_name
    -   fields:
        -   rx\_count (float)
        -   rx\_size\_in\_bytes (float)
        -   server\_open (float)
        -   tx\_count (float)
        -   tx\_size\_in\_bytes (float)
-   elasticsearch\_breakers
    
    -   tags:
        -   cluster\_name
        -   node\_attribute\_ml.enabled
        -   node\_attribute\_ml.machine\_memory
        -   node\_attribute\_ml.max\_open\_jobs
        -   node\_attribute\_xpack.installed
        -   node\_host
        -   node\_id
        -   node\_name
    -   fields:
        -   accounting\_estimated\_size\_in\_bytes (float)
        -   accounting\_limit\_size\_in\_bytes (float)
        -   accounting\_overhead (float)
        -   accounting\_tripped (float)
        -   fielddata\_estimated\_size\_in\_bytes (float)
        -   fielddata\_limit\_size\_in\_bytes (float)
        -   fielddata\_overhead (float)
        -   fielddata\_tripped (float)
        -   in\_flight\_requests\_estimated\_size\_in\_bytes (float)
        -   in\_flight\_requests\_limit\_size\_in\_bytes (float)
        -   in\_flight\_requests\_overhead (float)
        -   in\_flight\_requests\_tripped (float)
        -   parent\_estimated\_size\_in\_bytes (float)
        -   parent\_limit\_size\_in\_bytes (float)
        -   parent\_overhead (float)
        -   parent\_tripped (float)
        -   request\_estimated\_size\_in\_bytes (float)
        -   request\_limit\_size\_in\_bytes (float)
        -   request\_overhead (float)
        -   request\_tripped (float)
-   elasticsearch\_fs
    
    -   tags:
        -   cluster\_name
        -   node\_attribute\_ml.enabled
        -   node\_attribute\_ml.machine\_memory
        -   node\_attribute\_ml.max\_open\_jobs
        -   node\_attribute\_xpack.installed
        -   node\_host
        -   node\_id
        -   node\_name
    -   fields:
        -   data\_0\_available\_in\_bytes (float)
        -   data\_0\_free\_in\_bytes (float)
        -   data\_0\_total\_in\_bytes (float)
        -   io\_stats\_devices\_0\_operations (float)
        -   io\_stats\_devices\_0\_read\_kilobytes (float)
        -   io\_stats\_devices\_0\_read\_operations (float)
        -   io\_stats\_devices\_0\_write\_kilobytes (float)
        -   io\_stats\_devices\_0\_write\_operations (float)
        -   io\_stats\_total\_operations (float)
        -   io\_stats\_total\_read\_kilobytes (float)
        -   io\_stats\_total\_read\_operations (float)
        -   io\_stats\_total\_write\_kilobytes (float)
        -   io\_stats\_total\_write\_operations (float)
        -   timestamp (float)
        -   total\_available\_in\_bytes (float)
        -   total\_free\_in\_bytes (float)
        -   total\_total\_in\_bytes (float)
-   elasticsearch\_http
    
    -   tags:
        -   cluster\_name
        -   node\_attribute\_ml.enabled
        -   node\_attribute\_ml.machine\_memory
        -   node\_attribute\_ml.max\_open\_jobs
        -   node\_attribute\_xpack.installed
        -   node\_host
        -   node\_id
        -   node\_name
    -   fields:
        -   current\_open (float)
        -   total\_opened (float)
-   elasticsearch\_indices
    
    -   tags:
        -   cluster\_name
        -   node\_attribute\_ml.enabled
        -   node\_attribute\_ml.machine\_memory
        -   node\_attribute\_ml.max\_open\_jobs
        -   node\_attribute\_xpack.installed
        -   node\_host
        -   node\_id
        -   node\_name
    -   fields:
        -   completion\_size\_in\_bytes (float)
        -   docs\_count (float)
        -   docs\_deleted (float)
        -   fielddata\_evictions (float)
        -   fielddata\_memory\_size\_in\_bytes (float)
        -   flush\_periodic (float)
        -   flush\_total (float)
        -   flush\_total\_time\_in\_millis (float)
        -   get\_current (float)
        -   get\_exists\_time\_in\_millis (float)
        -   get\_exists\_total (float)
        -   get\_missing\_time\_in\_millis (float)
        -   get\_missing\_total (float)
        -   get\_time\_in\_millis (float)
        -   get\_total (float)
        -   indexing\_delete\_current (float)
        -   indexing\_delete\_time\_in\_millis (float)
        -   indexing\_delete\_total (float)
        -   indexing\_index\_current (float)
        -   indexing\_index\_failed (float)
        -   indexing\_index\_time\_in\_millis (float)
        -   indexing\_index\_total (float)
        -   indexing\_noop\_update\_total (float)
        -   indexing\_throttle\_time\_in\_millis (float)
        -   merges\_current (float)
        -   merges\_current\_docs (float)
        -   merges\_current\_size\_in\_bytes (float)
        -   merges\_total (float)
        -   merges\_total\_auto\_throttle\_in\_bytes (float)
        -   merges\_total\_docs (float)
        -   merges\_total\_size\_in\_bytes (float)
        -   merges\_total\_stopped\_time\_in\_millis (float)
        -   merges\_total\_throttled\_time\_in\_millis (float)
        -   merges\_total\_time\_in\_millis (float)
        -   query\_cache\_cache\_count (float)
        -   query\_cache\_cache\_size (float)
        -   query\_cache\_evictions (float)
        -   query\_cache\_hit\_count (float)
        -   query\_cache\_memory\_size\_in\_bytes (float)
        -   query\_cache\_miss\_count (float)
        -   query\_cache\_total\_count (float)
        -   recovery\_current\_as\_source (float)
        -   recovery\_current\_as\_target (float)
        -   recovery\_throttle\_time\_in\_millis (float)
        -   refresh\_listeners (float)
        -   refresh\_total (float)
        -   refresh\_total\_time\_in\_millis (float)
        -   request\_cache\_evictions (float)
        -   request\_cache\_hit\_count (float)
        -   request\_cache\_memory\_size\_in\_bytes (float)
        -   request\_cache\_miss\_count (float)
        -   search\_fetch\_current (float)
        -   search\_fetch\_time\_in\_millis (float)
        -   search\_fetch\_total (float)
        -   search\_open\_contexts (float)
        -   search\_query\_current (float)
        -   search\_query\_time\_in\_millis (float)
        -   search\_query\_total (float)
        -   search\_scroll\_current (float)
        -   search\_scroll\_time\_in\_millis (float)
        -   search\_scroll\_total (float)
        -   search\_suggest\_current (float)
        -   search\_suggest\_time\_in\_millis (float)
        -   search\_suggest\_total (float)
        -   segments\_count (float)
        -   segments\_doc\_values\_memory\_in\_bytes (float)
        -   segments\_fixed\_bit\_set\_memory\_in\_bytes (float)
        -   segments\_index\_writer\_memory\_in\_bytes (float)
        -   segments\_max\_unsafe\_auto\_id\_timestamp (float)
        -   segments\_memory\_in\_bytes (float)
        -   segments\_norms\_memory\_in\_bytes (float)
        -   segments\_points\_memory\_in\_bytes (float)
        -   segments\_stored\_fields\_memory\_in\_bytes (float)
        -   segments\_term\_vectors\_memory\_in\_bytes (float)
        -   segments\_terms\_memory\_in\_bytes (float)
        -   segments\_version\_map\_memory\_in\_bytes (float)
        -   store\_size\_in\_bytes (float)
        -   translog\_earliest\_last\_modified\_age (float)
        -   translog\_operations (float)
        -   translog\_size\_in\_bytes (float)
        -   translog\_uncommitted\_operations (float)
        -   translog\_uncommitted\_size\_in\_bytes (float)
        -   warmer\_current (float)
        -   warmer\_total (float)
        -   warmer\_total\_time\_in\_millis (float)
-   elasticsearch\_jvm
    
    -   tags:
        -   cluster\_name
        -   node\_attribute\_ml.enabled
        -   node\_attribute\_ml.machine\_memory
        -   node\_attribute\_ml.max\_open\_jobs
        -   node\_attribute\_xpack.installed
        -   node\_host
        -   node\_id
        -   node\_name
    -   fields:
        -   buffer\_pools\_direct\_count (float)
        -   buffer\_pools\_direct\_total\_capacity\_in\_bytes (float)
        -   buffer\_pools\_direct\_used\_in\_bytes (float)
        -   buffer\_pools\_mapped\_count (float)
        -   buffer\_pools\_mapped\_total\_capacity\_in\_bytes (float)
        -   buffer\_pools\_mapped\_used\_in\_bytes (float)
        -   classes\_current\_loaded\_count (float)
        -   classes\_total\_loaded\_count (float)
        -   classes\_total\_unloaded\_count (float)
        -   gc\_collectors\_old\_collection\_count (float)
        -   gc\_collectors\_old\_collection\_time\_in\_millis (float)
        -   gc\_collectors\_young\_collection\_count (float)
        -   gc\_collectors\_young\_collection\_time\_in\_millis (float)
        -   mem\_heap\_committed\_in\_bytes (float)
        -   mem\_heap\_max\_in\_bytes (float)
        -   mem\_heap\_used\_in\_bytes (float)
        -   mem\_heap\_used\_percent (float)
        -   mem\_non\_heap\_committed\_in\_bytes (float)
        -   mem\_non\_heap\_used\_in\_bytes (float)
        -   mem\_pools\_old\_max\_in\_bytes (float)
        -   mem\_pools\_old\_peak\_max\_in\_bytes (float)
        -   mem\_pools\_old\_peak\_used\_in\_bytes (float)
        -   mem\_pools\_old\_used\_in\_bytes (float)
        -   mem\_pools\_survivor\_max\_in\_bytes (float)
        -   mem\_pools\_survivor\_peak\_max\_in\_bytes (float)
        -   mem\_pools\_survivor\_peak\_used\_in\_bytes (float)
        -   mem\_pools\_survivor\_used\_in\_bytes (float)
        -   mem\_pools\_young\_max\_in\_bytes (float)
        -   mem\_pools\_young\_peak\_max\_in\_bytes (float)
        -   mem\_pools\_young\_peak\_used\_in\_bytes (float)
        -   mem\_pools\_young\_used\_in\_bytes (float)
        -   threads\_count (float)
        -   threads\_peak\_count (float)
        -   timestamp (float)
        -   uptime\_in\_millis (float)
-   elasticsearch\_os
    
    -   tags:
        -   cluster\_name
        -   node\_attribute\_ml.enabled
        -   node\_attribute\_ml.machine\_memory
        -   node\_attribute\_ml.max\_open\_jobs
        -   node\_attribute\_xpack.installed
        -   node\_host
        -   node\_id
        -   node\_name
    -   fields:
        -   cgroup\_cpu\_cfs\_period\_micros (float)
        -   cgroup\_cpu\_cfs\_quota\_micros (float)
        -   cgroup\_cpu\_stat\_number\_of\_elapsed\_periods (float)
        -   cgroup\_cpu\_stat\_number\_of\_times\_throttled (float)
        -   cgroup\_cpu\_stat\_time\_throttled\_nanos (float)
        -   cgroup\_cpuacct\_usage\_nanos (float)
        -   cpu\_load\_average\_15m (float)
        -   cpu\_load\_average\_1m (float)
        -   cpu\_load\_average\_5m (float)
        -   cpu\_percent (float)
        -   mem\_free\_in\_bytes (float)
        -   mem\_free\_percent (float)
        -   mem\_total\_in\_bytes (float)
        -   mem\_used\_in\_bytes (float)
        -   mem\_used\_percent (float)
        -   swap\_free\_in\_bytes (float)
        -   swap\_total\_in\_bytes (float)
        -   swap\_used\_in\_bytes (float)
        -   timestamp (float)
-   elasticsearch\_process
    
    -   tags:
        -   cluster\_name
        -   node\_attribute\_ml.enabled
        -   node\_attribute\_ml.machine\_memory
        -   node\_attribute\_ml.max\_open\_jobs
        -   node\_attribute\_xpack.installed
        -   node\_host
        -   node\_id
        -   node\_name
    -   fields:
        -   cpu\_percent (float)
        -   cpu\_total\_in\_millis (float)
        -   max\_file\_descriptors (float)
        -   mem\_total\_virtual\_in\_bytes (float)
        -   open\_file\_descriptors (float)
        -   timestamp (float)
-   elasticsearch\_thread\_pool
    
    -   tags:
        -   cluster\_name
        -   node\_attribute\_ml.enabled
        -   node\_attribute\_ml.machine\_memory
        -   node\_attribute\_ml.max\_open\_jobs
        -   node\_attribute\_xpack.installed
        -   node\_host
        -   node\_id
        -   node\_name
    -   fields:
        -   analyze\_active (float)
        -   analyze\_completed (float)
        -   analyze\_largest (float)
        -   analyze\_queue (float)
        -   analyze\_rejected (float)
        -   analyze\_threads (float)
        -   ccr\_active (float)
        -   ccr\_completed (float)
        -   ccr\_largest (float)
        -   ccr\_queue (float)
        -   ccr\_rejected (float)
        -   ccr\_threads (float)
        -   fetch\_shard\_started\_active (float)
        -   fetch\_shard\_started\_completed (float)
        -   fetch\_shard\_started\_largest (float)
        -   fetch\_shard\_started\_queue (float)
        -   fetch\_shard\_started\_rejected (float)
        -   fetch\_shard\_started\_threads (float)
        -   fetch\_shard\_store\_active (float)
        -   fetch\_shard\_store\_completed (float)
        -   fetch\_shard\_store\_largest (float)
        -   fetch\_shard\_store\_queue (float)
        -   fetch\_shard\_store\_rejected (float)
        -   fetch\_shard\_store\_threads (float)
        -   flush\_active (float)
        -   flush\_completed (float)
        -   flush\_largest (float)
        -   flush\_queue (float)
        -   flush\_rejected (float)
        -   flush\_threads (float)
        -   force\_merge\_active (float)
        -   force\_merge\_completed (float)
        -   force\_merge\_largest (float)
        -   force\_merge\_queue (float)
        -   force\_merge\_rejected (float)
        -   force\_merge\_threads (float)
        -   generic\_active (float)
        -   generic\_completed (float)
        -   generic\_largest (float)
        -   generic\_queue (float)
        -   generic\_rejected (float)
        -   generic\_threads (float)
        -   get\_active (float)
        -   get\_completed (float)
        -   get\_largest (float)
        -   get\_queue (float)
        -   get\_rejected (float)
        -   get\_threads (float)
        -   index\_active (float)
        -   index\_completed (float)
        -   index\_largest (float)
        -   index\_queue (float)
        -   index\_rejected (float)
        -   index\_threads (float)
        -   listener\_active (float)
        -   listener\_completed (float)
        -   listener\_largest (float)
        -   listener\_queue (float)
        -   listener\_rejected (float)
        -   listener\_threads (float)
        -   management\_active (float)
        -   management\_completed (float)
        -   management\_largest (float)
        -   management\_queue (float)
        -   management\_rejected (float)
        -   management\_threads (float)
        -   ml\_autodetect\_active (float)
        -   ml\_autodetect\_completed (float)
        -   ml\_autodetect\_largest (float)
        -   ml\_autodetect\_queue (float)
        -   ml\_autodetect\_rejected (float)
        -   ml\_autodetect\_threads (float)
        -   ml\_datafeed\_active (float)
        -   ml\_datafeed\_completed (float)
        -   ml\_datafeed\_largest (float)
        -   ml\_datafeed\_queue (float)
        -   ml\_datafeed\_rejected (float)
        -   ml\_datafeed\_threads (float)
        -   ml\_utility\_active (float)
        -   ml\_utility\_completed (float)
        -   ml\_utility\_largest (float)
        -   ml\_utility\_queue (float)
        -   ml\_utility\_rejected (float)
        -   ml\_utility\_threads (float)
        -   refresh\_active (float)
        -   refresh\_completed (float)
        -   refresh\_largest (float)
        -   refresh\_queue (float)
        -   refresh\_rejected (float)
        -   refresh\_threads (float)
        -   rollup\_indexing\_active (float)
        -   rollup\_indexing\_completed (float)
        -   rollup\_indexing\_largest (float)
        -   rollup\_indexing\_queue (float)
        -   rollup\_indexing\_rejected (float)
        -   rollup\_indexing\_threads (float)
        -   search\_active (float)
        -   search\_completed (float)
        -   search\_largest (float)
        -   search\_queue (float)
        -   search\_rejected (float)
        -   search\_threads (float)
        -   search\_throttled\_active (float)
        -   search\_throttled\_completed (float)
        -   search\_throttled\_largest (float)
        -   search\_throttled\_queue (float)
        -   search\_throttled\_rejected (float)
        -   search\_throttled\_threads (float)
        -   security-token-key\_active (float)
        -   security-token-key\_completed (float)
        -   security-token-key\_largest (float)
        -   security-token-key\_queue (float)
        -   security-token-key\_rejected (float)
        -   security-token-key\_threads (float)
        -   snapshot\_active (float)
        -   snapshot\_completed (float)
        -   snapshot\_largest (float)
        -   snapshot\_queue (float)
        -   snapshot\_rejected (float)
        -   snapshot\_threads (float)
        -   warmer\_active (float)
        -   warmer\_completed (float)
        -   warmer\_largest (float)
        -   warmer\_queue (float)
        -   warmer\_rejected (float)
        -   warmer\_threads (float)
        -   watcher\_active (float)
        -   watcher\_completed (float)
        -   watcher\_largest (float)
        -   watcher\_queue (float)
        -   watcher\_rejected (float)
        -   watcher\_threads (float)
        -   write\_active (float)
        -   write\_completed (float)
        -   write\_largest (float)
        -   write\_queue (float)
        -   write\_rejected (float)
        -   write\_threads (float)

Emitted when the appropriate `indices_stats` options are set.

-   elasticsearch\_indices\_stats\_(primaries|total)
    -   tags:
        -   index\_name
    -   fields:
        -   completion\_size\_in\_bytes (float)
        -   docs\_count (float)
        -   docs\_deleted (float)
        -   fielddata\_evictions (float)
        -   fielddata\_memory\_size\_in\_bytes (float)
        -   flush\_periodic (float)
        -   flush\_total (float)
        -   flush\_total\_time\_in\_millis (float)
        -   get\_current (float)
        -   get\_exists\_time\_in\_millis (float)
        -   get\_exists\_total (float)
        -   get\_missing\_time\_in\_millis (float)
        -   get\_missing\_total (float)
        -   get\_time\_in\_millis (float)
        -   get\_total (float)
        -   indexing\_delete\_current (float)
        -   indexing\_delete\_time\_in\_millis (float)
        -   indexing\_delete\_total (float)
        -   indexing\_index\_current (float)
        -   indexing\_index\_failed (float)
        -   indexing\_index\_time\_in\_millis (float)
        -   indexing\_index\_total (float)
        -   indexing\_is\_throttled (float)
        -   indexing\_noop\_update\_total (float)
        -   indexing\_throttle\_time\_in\_millis (float)
        -   merges\_current (float)
        -   merges\_current\_docs (float)
        -   merges\_current\_size\_in\_bytes (float)
        -   merges\_total (float)
        -   merges\_total\_auto\_throttle\_in\_bytes (float)
        -   merges\_total\_docs (float)
        -   merges\_total\_size\_in\_bytes (float)
        -   merges\_total\_stopped\_time\_in\_millis (float)
        -   merges\_total\_throttled\_time\_in\_millis (float)
        -   merges\_total\_time\_in\_millis (float)
        -   query\_cache\_cache\_count (float)
        -   query\_cache\_cache\_size (float)
        -   query\_cache\_evictions (float)
        -   query\_cache\_hit\_count (float)
        -   query\_cache\_memory\_size\_in\_bytes (float)
        -   query\_cache\_miss\_count (float)
        -   query\_cache\_total\_count (float)
        -   recovery\_current\_as\_source (float)
        -   recovery\_current\_as\_target (float)
        -   recovery\_throttle\_time\_in\_millis (float)
        -   refresh\_external\_total (float)
        -   refresh\_external\_total\_time\_in\_millis (float)
        -   refresh\_listeners (float)
        -   refresh\_total (float)
        -   refresh\_total\_time\_in\_millis (float)
        -   request\_cache\_evictions (float)
        -   request\_cache\_hit\_count (float)
        -   request\_cache\_memory\_size\_in\_bytes (float)
        -   request\_cache\_miss\_count (float)
        -   search\_fetch\_current (float)
        -   search\_fetch\_time\_in\_millis (float)
        -   search\_fetch\_total (float)
        -   search\_open\_contexts (float)
        -   search\_query\_current (float)
        -   search\_query\_time\_in\_millis (float)
        -   search\_query\_total (float)
        -   search\_scroll\_current (float)
        -   search\_scroll\_time\_in\_millis (float)
        -   search\_scroll\_total (float)
        -   search\_suggest\_current (float)
        -   search\_suggest\_time\_in\_millis (float)
        -   search\_suggest\_total (float)
        -   segments\_count (float)
        -   segments\_doc\_values\_memory\_in\_bytes (float)
        -   segments\_fixed\_bit\_set\_memory\_in\_bytes (float)
        -   segments\_index\_writer\_memory\_in\_bytes (float)
        -   segments\_max\_unsafe\_auto\_id\_timestamp (float)
        -   segments\_memory\_in\_bytes (float)
        -   segments\_norms\_memory\_in\_bytes (float)
        -   segments\_points\_memory\_in\_bytes (float)
        -   segments\_stored\_fields\_memory\_in\_bytes (float)
        -   segments\_term\_vectors\_memory\_in\_bytes (float)
        -   segments\_terms\_memory\_in\_bytes (float)
        -   segments\_version\_map\_memory\_in\_bytes (float)
        -   store\_size\_in\_bytes (float)
        -   translog\_earliest\_last\_modified\_age (float)
        -   translog\_operations (float)
        -   translog\_size\_in\_bytes (float)
        -   translog\_uncommitted\_operations (float)
        -   translog\_uncommitted\_size\_in\_bytes (float)
        -   warmer\_current (float)
        -   warmer\_total (float)
        -   warmer\_total\_time\_in\_millis (float)

Emitted when the appropriate `shards_stats` options are set.

-   elasticsearch\_indices\_stats\_shards\_total
    
    -   fields:
        -   failed (float)
        -   successful (float)
        -   total (float)
-   elasticsearch\_indices\_stats\_shards
    
    -   tags:
        -   index\_name
        -   node\_name
        -   shard\_name
        -   type
    -   fields:
        -   commit\_generation (float)
        -   commit\_num\_docs (float)
        -   completion\_size\_in\_bytes (float)
        -   docs\_count (float)
        -   docs\_deleted (float)
        -   fielddata\_evictions (float)
        -   fielddata\_memory\_size\_in\_bytes (float)
        -   flush\_periodic (float)
        -   flush\_total (float)
        -   flush\_total\_time\_in\_millis (float)
        -   get\_current (float)
        -   get\_exists\_time\_in\_millis (float)
        -   get\_exists\_total (float)
        -   get\_missing\_time\_in\_millis (float)
        -   get\_missing\_total (float)
        -   get\_time\_in\_millis (float)
        -   get\_total (float)
        -   indexing\_delete\_current (float)
        -   indexing\_delete\_time\_in\_millis (float)
        -   indexing\_delete\_total (float)
        -   indexing\_index\_current (float)
        -   indexing\_index\_failed (float)
        -   indexing\_index\_time\_in\_millis (float)
        -   indexing\_index\_total (float)
        -   indexing\_is\_throttled (bool)
        -   indexing\_noop\_update\_total (float)
        -   indexing\_throttle\_time\_in\_millis (float)
        -   merges\_current (float)
        -   merges\_current\_docs (float)
        -   merges\_current\_size\_in\_bytes (float)
        -   merges\_total (float)
        -   merges\_total\_auto\_throttle\_in\_bytes (float)
        -   merges\_total\_docs (float)
        -   merges\_total\_size\_in\_bytes (float)
        -   merges\_total\_stopped\_time\_in\_millis (float)
        -   merges\_total\_throttled\_time\_in\_millis (float)
        -   merges\_total\_time\_in\_millis (float)
        -   query\_cache\_cache\_count (float)
        -   query\_cache\_cache\_size (float)
        -   query\_cache\_evictions (float)
        -   query\_cache\_hit\_count (float)
        -   query\_cache\_memory\_size\_in\_bytes (float)
        -   query\_cache\_miss\_count (float)
        -   query\_cache\_total\_count (float)
        -   recovery\_current\_as\_source (float)
        -   recovery\_current\_as\_target (float)
        -   recovery\_throttle\_time\_in\_millis (float)
        -   refresh\_external\_total (float)
        -   refresh\_external\_total\_time\_in\_millis (float)
        -   refresh\_listeners (float)
        -   refresh\_total (float)
        -   refresh\_total\_time\_in\_millis (float)
        -   request\_cache\_evictions (float)
        -   request\_cache\_hit\_count (float)
        -   request\_cache\_memory\_size\_in\_bytes (float)
        -   request\_cache\_miss\_count (float)
        -   retention\_leases\_primary\_term (float)
        -   retention\_leases\_version (float)
        -   routing\_state (int) (UNASSIGNED = 1, INITIALIZING = 2, STARTED = 3, RELOCATING = 4, other = 0)
        -   search\_fetch\_current (float)
        -   search\_fetch\_time\_in\_millis (float)
        -   search\_fetch\_total (float)
        -   search\_open\_contexts (float)
        -   search\_query\_current (float)
        -   search\_query\_time\_in\_millis (float)
        -   search\_query\_total (float)
        -   search\_scroll\_current (float)
        -   search\_scroll\_time\_in\_millis (float)
        -   search\_scroll\_total (float)
        -   search\_suggest\_current (float)
        -   search\_suggest\_time\_in\_millis (float)
        -   search\_suggest\_total (float)
        -   segments\_count (float)
        -   segments\_doc\_values\_memory\_in\_bytes (float)
        -   segments\_fixed\_bit\_set\_memory\_in\_bytes (float)
        -   segments\_index\_writer\_memory\_in\_bytes (float)
        -   segments\_max\_unsafe\_auto\_id\_timestamp (float)
        -   segments\_memory\_in\_bytes (float)
        -   segments\_norms\_memory\_in\_bytes (float)
        -   segments\_points\_memory\_in\_bytes (float)
        -   segments\_stored\_fields\_memory\_in\_bytes (float)
        -   segments\_term\_vectors\_memory\_in\_bytes (float)
        -   segments\_terms\_memory\_in\_bytes (float)
        -   segments\_version\_map\_memory\_in\_bytes (float)
        -   seq\_no\_global\_checkpoint (float)
        -   seq\_no\_local\_checkpoint (float)
        -   seq\_no\_max\_seq\_no (float)
        -   shard\_path\_is\_custom\_data\_path (bool)
        -   store\_size\_in\_bytes (float)
        -   translog\_earliest\_last\_modified\_age (float)
        -   translog\_operations (float)
        -   translog\_size\_in\_bytes (float)
        -   translog\_uncommitted\_operations (float)
        -   translog\_uncommitted\_size\_in\_bytes (float)
        -   warmer\_current (float)
        -   warmer\_total (float)
        -   warmer\_total\_time\_in\_millis (float)

## Example Output

#### Related

-   [Configure plugins](/telegraf/v1/configure_plugins/)
-   [Elasticsearch Plugin Source](https://github.com/influxdata/telegraf/tree/v1.38.4/plugins/inputs/elasticsearch/README.md)
