"use strict";(self.webpackChunkinfluxdb_ui=self.webpackChunkinfluxdb_ui||[]).push([[353],{76567:e=>{e.exports='# Derive metrics from aggregating Elasticsearch query results\n[[inputs.elasticsearch_query]]\n  ## The full HTTP endpoint URL for your Elasticsearch instance\n  ## Multiple urls can be specified as part of the same cluster,\n  ## this means that only ONE of the urls will be written to each interval.\n  urls = [ "http://node1.es.example.com:9200" ] # required.\n\n  ## Elasticsearch client timeout, defaults to "5s".\n  # timeout = "5s"\n\n  ## Set to true to ask Elasticsearch a list of all cluster nodes,\n  ## thus it is not necessary to list all nodes in the urls config option\n  # enable_sniffer = false\n\n  ## Set the interval to check if the Elasticsearch nodes are available\n  ## This option is only used if enable_sniffer is also set (0s to disable it)\n  # health_check_interval = "10s"\n\n  ## HTTP basic authentication details (eg. when using x-pack)\n  # username = "telegraf"\n  # password = "mypassword"\n\n  ## Optional TLS Config\n  # tls_ca = "/etc/telegraf/ca.pem"\n  # tls_cert = "/etc/telegraf/cert.pem"\n  # tls_key = "/etc/telegraf/key.pem"\n  ## Use TLS but skip chain & host verification\n  # insecure_skip_verify = false\n\n  [[inputs.elasticsearch_query.aggregation]]\n    ## measurement name for the results of the aggregation query\n    measurement_name = "measurement"\n\n    ## Elasticsearch indexes to query (accept wildcards).\n    index = "index-*"\n\n    ## The date/time field in the Elasticsearch index (mandatory).\n    date_field = "@timestamp"\n\n    ## If the field used for the date/time field in Elasticsearch is also using\n    ## a custom date/time format it may be required to provide the format to\n    ## correctly parse the field.\n    ##\n    ## If using one of the built in elasticsearch formats this is not required.\n    # date_field_custom_format = ""\n\n    ## Time window to query (eg. "1m" to query documents from last minute).\n    ## Normally should be set to same as collection interval\n    query_period = "1m"\n\n    ## Lucene query to filter results\n    # filter_query = "*"\n\n    ## Fields to aggregate values (must be numeric fields)\n    # metric_fields = ["metric"]\n\n    ## Aggregation function to use on the metric fields\n    ## Must be set if \'metric_fields\' is set\n    ## Valid values are: avg, sum, min, max, sum\n    # metric_function = "avg"\n\n    ## Fields to be used as tags\n    ## Must be text, non-analyzed fields. Metric aggregations are performed per tag\n    # tags = ["field.keyword", "field2.keyword"]\n\n    ## Set to true to not ignore documents when the tag(s) above are missing\n    # include_missing_tag = false\n\n    ## String value of the tag when the tag does not exist\n    ## Used when include_missing_tag is true\n    # missing_tag_value = "null"\n'}}]);