This tool will export your data from Elastic Search to CSV file. You can choose if you need export a whole index or only a type.
./es-export \
-host=<source-elastic-search> \
-index=<index-name> \
-type=<type-name> \
-output=<output-file>
-
-host: source of data to export
-
-index: name of index to export
-
-type: name of type inside of to export
-
-output: name of csv file to write