Elastcisearch

how to export the data stored in elasticsearch.

To what format? Where do you want to store it?

In a CSV format.

Logstash can export to that if you want.

You can also use the Exporting functionality that is in Reporting.