Failed to check for alias 'metricbeat-7.17.12': (status=403) : 403 Forbidden


We have Elastic and Kibana running on the same cluster and now I am trying to send system data from another host via metricbeat to elastic directly.

For this I followed the 5 steps explained in the official documentation.

In step 4 when entering command (This step loads the recommended index template for writing to Elasticsearch and deploys the sample dashboards for visualizing the data in Kibana)

metricbeat setup -e

I get following error message:

BTW: metricbeat config looks like this:

# =================================== Kibana ===================================

# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.

  # Kibana Host
  # Scheme and port can be left out and will be set to the default (http and 5601)
  # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  host: "https://XXX:443"

# ================================== Outputs ===================================

# Configure what output to use when sending the data collected by the beat.

# ---------------------------- Elasticsearch Output ----------------------------
  # Array of hosts to connect to.
  hosts: ["https://XXX:443"]

  # Protocol - either `http` (default) or `https`.
  protocol: "https"

  # Authentication credentials - either API key or username/password.
  #api_key: "id:api_key"
  username: "username"
  password: "${password}"

What am I supposed to do here?
Thanks in advance

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.