Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] metricbeat dashboards fail to install #831

Open
wyllys66 opened this issue Sep 29, 2021 · 7 comments
Open

[BUG] metricbeat dashboards fail to install #831

wyllys66 opened this issue Sep 29, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@wyllys66
Copy link

Attempting to install metricbeat (7.12.1) dashboards into the opensearch-dashboard fails due to the Kibana version check.

The workaround is to manually upload them with curl, for example:

curl -k -XPOST -u USER:PASSWORD -H "osd-xsrf: true" -H 'content-type: application/json' \
https://DASHBOARD-HOSTNAME:5601/api/opensearch-dashboards/dashboards/import?exclude=index-patterh\&force=true \
-d@/usr/share/metricbeat/kibana/7/dashboard/Metricbeat-system-overview.json

The command above appears to succeed (200 status), but the uploaded dashboards never show up in the "dashboards" section of the GUI and there are no errors in the logs indicating a problem.

Is there any guidance for installing the metricbeat dashboards to opensearch/opensearch-dashboard 1.0.1 ?

@wyllys66
Copy link
Author

I was mistaken. They are visible, but only in the private tenant exclusive to the user id that uploaded them.

Is there a way to make them globally available?

@tmarkley
Copy link
Contributor

tmarkley commented Oct 5, 2021

@ahopp can you respond here?

@WilfriedMaillet
Copy link

I have the same check issue on beats tools in version 7.10.2 :
ERROR instance/beat.go:956 Exiting: Error importing Kibana dashboards: Kibana API is not available in Kibana version 1.1.0
In the OpenSearch Dashboards configuration, a configuration such as ' compatibility.override_main_response_version' available on OpenSearch for example, it should resolve this problem

@JSkier21
Copy link

I was mistaken. They are visible, but only in the private tenant exclusive to the user id that uploaded them.

Is there a way to make them globally available?

What I did is export the saved objects from the private tenant dashboard (with all objects) in the gui, and then import that ndjson file into global tenant. It works perfectly.

@tmarkley
Copy link
Contributor

#939 includes some options to address this

mmguero added a commit to mmguero-dev/Malcolm that referenced this issue Nov 24, 2021
… to do so

Today I learned (see opensearch-project/OpenSearch-Dashboards#656,
opensearch-project/OpenSearch-Dashboards#831) that Beats won't import
dashboards into OpenSearch Dashboards using the "Kibana API." For now, then
these will have to be imported manually.
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this issue Feb 10, 2022
Generic chart for handling the Heat map and Swim lane. The main difference between those two is X-axis scaling, categorical vs. time-based. 

Currently supported:
* Linear, threshold, quantile, and quantize color scaling
* Time scaling for X-axis, with custom boundaries and interval 
* Tooltip for cells and Y-axis values
* Highlighting of the brushed area with customizable styling
* Legend based on the color scaling and handling the deselected series 
* Basic styling for axis, grid, and cells.
Events:
* onElementClick callback for the clicked cell on the chart
* Providing X, Y ranges and selected cells with onBrushEnd callback as part of the chart config

fix opensearch-project#752

Co-authored-by: Marco Vettorello <[email protected]>
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this issue Feb 10, 2022
@charlielj88
Copy link

charlielj88 commented Jun 11, 2022

Hi @wyllys66 , how do you manage to call this import API? I tried for aws opensearch 1.2, but observed an error "no matches found: https://opensearch_url:443/_dashboards/api/opensearch-dashboards/dashboards/import?exclude=index-patterh&force=true"

I could not find any documentation on this "api/opensearch-dashboards/dashboards/import" API as well.

@opoplawski
Copy link

Filebeat 7.17.3 suricata dashboards:

curl -XPOST -u admin -H 'osd-xsrf: true' -H 'Content-Type: application/json' 'https://FQDN:5601/api/opensearch-dashboards/dashboards/import?exclude=index-pattern&force=true' -d@/usr/share/filebeat/kibana/7/dashboard/filebeat-suricata-event-overview.json
{"statusCode":400,"error":"Bad Request","message":"[request body.objects]: expected value of type [array] but got [undefined]"}

I suspect one would need to import the related visualizations first but I have no idea how to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants