# Metricbeat cannot setup dashboards to AWS Elasticsearch

**URL:** https://discuss.elastic.co/t/metricbeat-cannot-setup-dashboards-to-aws-elasticsearch/282135
**Category:** Beats
**Tags:** metricbeat
**Created:** [August 21, 2021, 8:20am UTC](https://discuss.elastic.co/t/metricbeat-cannot-setup-dashboards-to-aws-elasticsearch/282135 "2021-08-21T08:20:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![buulq90](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/buulq90/32/107994_2.png) [@buulq90](https://discuss.elastic.co/u/buulq90)
#### Post date: [August 21, 2021, 8:20am UTC](https://discuss.elastic.co/t/metricbeat-cannot-setup-dashboards-to-aws-elasticsearch/282135/1 "2021-08-21T08:20:18Z")

</div>

Hello all,

I'm first using of ELK stack and got some issue when trying to connect the Metricbeat to my AWS Elasticsearch. My environment is as below:

- AWS Elasticsearch 7.10

- Metricbeat OSS 7.10.0 - Windows-x86\_64

My metricbeat.yml configuration:

```auto
#============================ Config Reloading ===============================

# Config reloading allows to dynamically load modules. Each file which is
# monitored must contain one or multiple modules as a list.
metricbeat.config.modules:

  # Glob pattern for configuration reloading
  path: ${path.config}/modules.d/*.yml

  # Period on which files under path should be checked for changes
  reload.period: 10s

  # Set to true to enable config reloading
  reload.enabled: false

# Maximum amount of time to randomly delay the start of a metricset. Use 0 to
# disable startup delay.
metricbeat.max_start_delay: 10s

#setup.ilm.enabled: false
#ilm.enabled: false
setup.ilm.enabled: false
setup.pack.security.enabled: false
setup.xpack.graph.enabled: false
setup.xpack.watcher.enabled: false
setup.xpack.monitoring.enabled: false
setup.xpack.reporting.enabled: false

setup.kibana:
  host: "https://search-test-xyzu.us-east-1.es.amazonaws.com:443/_plugin/kibana/" 
  username: "elkadmin"
  password: "XXX"
  setup.dashboards.enabled: true
  access_key_id: "YYY"                                                                 
  secret_access_key: "ZZZ"

output.elasticsearch:
  hosts: ["https://search-test-xyzu.us-east-1.es.amazonaws.com:443"]
  username: "elkadmin"
  password: "XXX!"
  access_key_id: "YYY"                                                                 
  secret_access_key: "ZZZ" 

```

My test out put result is OK

 ![test_output](https://us1.discourse-cdn.com/elastic/original/3X/0/b/0b892fcda349786bb447c02f70cf50c4f496371c.png)

But when I using the command to setup the dashboard ".\metricbeat setup --dashboards", then I got the error 401 as below:

```auto
Loading dashboards (Kibana must be running and reachable)
Exiting: 1 error: error loading index pattern: returned 401 to import file: <nil>. Response: {"statusCode":401,"error":"Unauthorized","message":"Authentication required"}

```

Please help me to solve the issue.  
Thank you in advance!

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [August 22, 2021, 4:29am UTC](https://discuss.elastic.co/t/metricbeat-cannot-setup-dashboards-to-aws-elasticsearch/282135/2 "2021-08-22T04:29:36Z")

</div>

Unfortunately the aws service is not Elasticsearch and does not support these dashboards.

---

<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 19, 2021, 6:30am UTC](https://discuss.elastic.co/t/metricbeat-cannot-setup-dashboards-to-aws-elasticsearch/282135/3 "2021-09-19T06:30:35Z")

</div>

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