Metricbeat cannot setup dashboards to AWS Elasticsearch

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:

#============================  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

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

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!

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

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