Hi!
I imported some dashboards to a fresh kibana helm deployment (7.0.1 version) but when I am going to open a dashboard, kibana asks to set the default index.
How can I set the default index with a curl command?
Thank you in advance!
Hi!
I imported some dashboards to a fresh kibana helm deployment (7.0.1 version) but when I am going to open a dashboard, kibana asks to set the default index.
How can I set the default index with a curl command?
Thank you in advance!
It's the defaultIndex
value in Advanced Settings needed for these fresh installs of Kibana. It looks like it might not be documented, but I can see from a network inspector that the curl command would be:
curl 'http://localhost:5601/api/kibana/settings' \
-H 'kbn-version: 7.5.1' \
-H 'Content-Type: application/json' \
--data-binary '{"changes":{"defaultIndex":"be7e57b0-572c-11ea-bb8f-a54396990d95"}}' \
--compressed
You can replace be7e57b0-572c-11ea-bb8f-a54396990d95
with the ID of the index pattern you wish to set.
BTW there was an issue to make these settings documented, but it looks like the API schema would have to be re-considered first. So I would expect this API to have breaking changes at any time over a Kibana minor release.
Thank you for the response Tim.
The curl command works fine for a deployment I have on a vm but I get {"message":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];: [cluster_block_exception] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];","statusCode":403,"error":"Forbidden"} when I run this curl on an another deployment. If you have a hint for this error will be more than helpful!!
Thank you againe
Hi, that error is being forwarded from Elasticsearch. The elasticsearch node logs will have more information about what is going on. It looks like the cluster is in a read-only state and that often means something about the disk volume that a node is running on.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.