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

**URL:** <https://discuss.elastic.co/t/failed-to-check-for-alias-metricbeat-7-17-12-status-403-403-forbidden/342046>\
**Category:** Metrics\
**Created:** [August 31, 2023, 12:11pm UTC](https://discuss.elastic.co/t/failed-to-check-for-alias-metricbeat-7-17-12-status-403-403-forbidden/342046 "2023-08-31T12:11:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenKenobi](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@BenKenobi](https://discuss.elastic.co/u/BenKenobi)\
**Post date:** [August 31, 2023, 12:11pm UTC](https://discuss.elastic.co/t/failed-to-check-for-alias-metricbeat-7-17-12-status-403-403-forbidden/342046/1 "2023-08-31T12:11:36Z")

</div>

Hi,

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](https://www.elastic.co/guide/en/elasticsearch/reference/8.9/index-templates.html) for writing to Elasticsearch and deploys the sample dashboards for visualizing the data in Kibana)

```auto
metricbeat setup -e

```

I get following error message:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/2/62d52eb94a1678a019f656f9c9a044ff11dedb0b.png)

BTW: metricbeat config looks like this:

```auto
# =================================== Kibana ===================================

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

  # 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 ----------------------------
output.elasticsearch:
  # 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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 28, 2023, 12:12pm UTC](https://discuss.elastic.co/t/failed-to-check-for-alias-metricbeat-7-17-12-status-403-403-forbidden/342046/2 "2023-09-28T12:12:31Z")

</div>

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