Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we export all search result data in Kibana?

Tags:

I am trying to export all search result data in Kibana 5. But it's only exporting count of the result. Is there any way to export all data in CSV format in Kibana?

Tried so far

  1. Clicked on symbol (^) at the bottom of search result visualization.
  2. Tried with "Raw" and "Formatted" option both.
  3. Data is exporting in CSV format (attached image below) but it's displaying total count of the search result. But it should export all 65001 result.

enter image description here

Getting Output: enter image description here

like image 740
Roopendra Avatar asked Nov 17 '16 11:11

Roopendra


People also ask

Can we export logs from Kibana?

Log aggregations found in Kibana dashboards and data tables can sometimes interest other colleagues. Using Coralogix's version of Kibana, you can easily export Kibana Dashboards to PDF, just go to your Kibana Dashboard and click on 'Export to PDF'.

How do I export Elasticsearch data to JSON?

Because Elasticsearch Dev Tools and standard Elasticsearch search API limit the number of records to 10,000, the simplest way to export all of the index data as JSON file is to use the elasticsearch-dump tool: https://github.com/elasticsearch-dump/elasticsearch-dump.


1 Answers

This is a very longstanding feature request (going back to 2014) with Kibana; see their issue tracker. For whatever reasons they seem to be having trouble with implementing it.

If you only need a subset of your fields exported, a workaround is to create a visualization of the fields that you need and export using the buttons in the visualization section; these work as you would expect. The downside to this is that if you need very many fields you will end up with complex and/or multiple visualizations.

If you don't mind installing another thing, there is a Kibana fork called Kibi which claims to support this, among other useful things. I can't say for sure, as it doesn't run easily for me on the remote ES cluster I am working with right now, but you may have better luck.

like image 88
jkf Avatar answered Sep 18 '22 16:09

jkf