Ahead of upgrading Kibana from 7 (yes I know) to 8, I'm looking at ~1500 short URLs which it has been decided are no longer needed. (N.B. Some short URLs are still wanted.) Deleting them using the Kibana GUI would be exceeding tedious, especially when it's apparently impossible to search for the objects Search url Saved Objects by Title - #4 by Tortoise . Having worked out how to extract the relevant from exported JSON, I've been looking at the Kibana API as described at
There is no mention of saved object of type url there. But the wording of
(Required, string) Valid options include visualization, dashboard, search, index-pattern, config.
is such as to imply that the types given are just same of the ones which are valid (“includes”, not “are”, though why not state all valid values for clarity) and exported JSON of the URLs says type is url. E.g.
Yeah, but the fact that it is not working suggests that the list are complete with the allowed types, have you made a test to create and delete one of the listed types to see if it works:
Only someone from Elastic would be able to confirm that, but considering that this is on a unsupported version and on an deprecated API endpoint in newer versions, not sure anyone will be able to provide this information.
As far as I remeber this endpoint never want GA, it was a preview and then it was decided to deprecated it, so maybe the documentation has the wrong wording, but there is nothing to do here to change it.
I hadn’t, but that’s a great suggestion so I did it and successfully deleted a visualisation via the API. Which proves deleting things via the API in general does work. And while doing that I had a thought, and that led me to the discovery that how to delete a saved object of type url via the API is do it exactly the way I thought it should be done but with the essential element of having the competence to be doing it on the Kibana server that is configured to use the index which contains those saved objects.
We have multiple Kibana servers, each configured to use it’s own index for settings. I exported the url saved objects as JSON from Kibana A, and yesterday I was trying to delete things whilst logged in to a Kibana notA. Which is…
Thank you @leandrojmp for engaging with my question about to do something on an EOL Kibana version (wish we weren’t using it but so it goes) that I only asked because I failed to realise I was logged in to the wrong server.
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.