Export data using logstash

can logstash be used to export data FROM elasticearch to another database?

Which database.

neo4j

Then no.

thanks.
is there a better way to export massive amount of data, than run paging query again and again?

i changed the "from/to" search to "scan/scroll" and it works much faster

That is the recommended method.