Single yml file for metricbeat

Hi @Saravana37 - It seems that Metricbeat cannot to your Elasticsearch cluster:

  • pipeline/output.go:100 Failed to connect to backoff(elasticsearch(http://XX:9200)): 401 Unauthorized.

From your configuration file:

output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["XX.XX.XX.XX:9200"]

  # Enabled ilm (beta) to use index lifecycle management instead daily indices.
  #ilm.enabled: false
  
  # Optional protocol and basic auth credentials.
  #protocol: "https"
  #username: "elastic"
  #password: "changeme"

The protocol / credentials configuration options are commented-out. I am not sure how you have configured the authentication in your Elasticsearch cluster - but additional configuration options could be required in the Elasticsearch output.

I hope that helps.