Indices to JSON


I want to export a indices to a JSON file. I've verified this location /var/lib/elasticsearch/nodes/0/indices/RKq99IGSSF6aLa_3J29XLg, but there is no JSON file and I don't know which one is the correct file.

Thank you!

The data in the elastic data directories is in the lucene segments format it is not json format you will not be able to just copy json out of one of those files.

You will need to export the data using the elasticsearch rest API or a tool like logstash which can read it and write it to a file.

Which method you choose kind of depends on how big the index is and how fast you need to get it done

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.