Or depending on what you're going to do with the data, you might want to try the ODBC driver SQL ODBC | Elasticsearch Guide [8.11] | Elastic
It allows you to pull data directly from Elasticsearch into spreadsheets or other apps.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.