I'm playing around with the (relatively) new "saved objects" API and programmatically populating Kibana.
In 5.4 I used to dump the
.kibana index and (re)create it. (Because there was no other way to populate Kibana besides the frontend - ugly, but it worked just good enough)
Under 6.6 I struggle for two reasons:
First: I can not use the create object api to (re-)import data generated with the get object api. I have to modify the exported data (drop id, updated_at, ...), there seems to be no way to import it otherwise.
Is this a known limitation and will be fixed in a future version? In my opinion the create object API should work with data exported by the get object API.
Second: If the imported index is the first one to be created I have still can't use it out of the box, because it seems to have to manually "star" the index pattern to set it as the default pattern.
Is there a way to set an index pattern as default pattern using the Kibana API?