Export visualization datawith Kiabana API (data table)

Hi,
is it possible to export the results of a visualization with the Kibana API? I tried to use the saved objects API, but this only exports the visualization itself, but not the data of the visualization.

Thanks in advance!

Hey @kibana069,

I don't believe it's possible to export the records related to a visualization using the API. You can generate a CSV under the Inspect menu using the UI.

Do you have access to query the Elasticsearch API as well? It's more involved, but you may be able to use the Saved Objects API to grab the visualization from Kibana, parse the searchSourceJSON field, and then query Elasticsearch using the same parameters.

Let me know if that helps.

Brian

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.