# Elasticsearch with migrated timeout and TLS configuration
[[inputs.elasticsearch]]
  servers = ["https://elasticsearch.example.com:9200"]
  local = false
  cluster_health = true
  cluster_stats = true
  cluster_health_level = "cluster"
  timeout = "45s"
  indices_include = ["_all"]
  indices_level = "cluster"
  node_stats = ["jvm", "http", "process"]
  num_most_recent_indices = 5

  # TLS Configuration
  #tls_ca = "/etc/telegraf/ca.pem"
  #tls_cert = "/etc/telegraf/cert.pem"
  #tls_key = "/etc/telegraf/key.pem"
  insecure_skip_verify = false

  # Proxy Configuration
  use_system_proxy = false
  http_proxy_url = "http://proxy.example.com:8080"