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

Error: failed to create kibana saved dashboard... #44

Open
KasiaBM-CC opened this issue Apr 7, 2020 · 1 comment
Open

Error: failed to create kibana saved dashboard... #44

KasiaBM-CC opened this issue Apr 7, 2020 · 1 comment

Comments

@KasiaBM-CC
Copy link

KasiaBM-CC commented Apr 7, 2020

Trying to create a simple dashboard with just one widget and keep getting an error:

Error: failed to create kibana saved dashboard: &{0xc4201ad030} error: POST API call to https://my_kibana_domain/api/saved_objects/dashboard?overwrite=true failed 400 Bad Request. Code: 400, Body: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/api/saved_objects/dashboard] contains unrecognized parameter: [overwrite]"}],"type":"illegal_argument_exception","reason":"request [/api/saved_objects/dashboard] contains unrecognized parameter: [overwrite]"},"status":400}, Message: Could not create dashboard

The same error is thrown in both cases:

  1. The dashboard doesn't exist in Kibana
  2. The dashboard exists in Kibana, yet ID is not appended to URL

Looking at the API although the overwrite parameter is optional and by default set to true, it appears that the id of the dashboard to be overwritten is missing from the URL. Looking at the source code the parameter is appended regardless creating a URL that is not recognised by API. Please verify as I am not able to make any progress.

@chrispblink
Copy link

@KasiaBM-CC hi there! I had this exact issue so I dug into the provider and analyzed the REST requests. It turns out that response is coming from Elasticsearch, not Kibana. This happened to me because they're both on the same host under different endpoints (standard AWS Elasticsearch Service deployment).

I changed kibana_uri to https://ELASTICSEARCH_HOST/_plugin/kibana/ and now it's working! Hope this helps 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants