Export all document to either JSON or CSV


(allan) #1

Hello, I know this might be a basic question, but I believe everybody has to learn from some point.

I am trying hard to learn Elasticsearch and as I was going through the documentation at this page

https://www.elastic.co/guide/en/elasticsearch/reference/current/_exploring_your_data.html

I learned how to load a JSON data and form an index. But later an question arose in my head, how would I be able to export the whole index that I created (here the bank) to CSV or a JSON. Since I couldn't find a solution in Kibana, I searched Github and came across this python script 'es2csv'.

https://pypi.python.org/pypi/es2csv/2.4.1

I installed it, but I can't make an output to a format that it should appear in a CSV file. Please, could you help me understand what should I do because it is vital for me to learn.


(system) #2

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