I have 3 node elasticsearch cluster and I put data in index name pp_index in json format. I want to read that data and write in json file.
I can read data from below command but how can I write that data in json file
curl -H 'Content-Type: application/json' -X GET http://localhost:9200/pp_index/_search?pretty