How to export elasticsearch raw data to csv
I recently started using elasticsearch database and kibana 5.6.9. I was able to export the visualization data to csv using kibana, but not the raw data.
Am in search of a method, where I should be able to export the raw data from Elasticsearch to a CSV file. Can I get some help regarding this. Thanks in advance.