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
- How to import Kibana dashboards into AWS OpenSearch
- Home Energy Monitoring using ESP32
- How to use OpenSearch Trace Analytics as a backend for Spring Boot application tracing
- Creating Custom Metrics in Spring Boot using Micrometer API
- Configure Travel Router to route traffic via ZeroTier
Total Page Visits: 18864 - Today Page Visits: 28
Can you please share contents of auth.txt
Just specify it as in the post, its just a cookie-file. Visit the site below and search for “–cookie-jar”
https://curl.se/docs/manpage.html