How to import Kibana dashboards into AWS OpenSearch

If you are using AWS OpenSearch for logs and metrics in AWS, along with beats family agents, you might realize that the dashboards provided by beats for Kibana no longer work with auto import and you can’t directly take the Kibana dashboard JSON and import it into AWS OpenSearch.

However you can use API to import the Kibana dashboards and whichever visualizations fail to load or are incompatible, you can manually fix them, that way you don’t need to create the dashboard and all visualization in that manually.

Login to OpenSearch

curl -k -X POST https://<URL>/_dashboards/auth/login -H "osd-xsrf:true" -H "content-type:application/json" \
  -d '{"username":"<username>", "password":"<password>"}' -c auth.txt

Import the dashboard

You can download and unpack the required beats package, under kibana directory you will have dashboards.

curl \
  -k \
  -X POST \
  -b auth.txt \
  -H 'osd-xsrf: true' \
  -H 'Content-Type: application/json' \
  'https://<URL>/_dashboards/api/opensearch-dashboards/dashboards/import?exclude=index-pattern&force=true' \
  [email protected]_64/kibana/7/dashboard/Metricbeat-system-overview.json

These steps have been tested with OpenSearch 1.2

Total Page Visits: 28056 - Today Page Visits: 2

2 thoughts on “How to import Kibana dashboards into AWS OpenSearch

Leave a Reply

Your email address will not be published. Required fields are marked *