Title here
Summary here
curl -X GET "https://[ elastic_endpoint ]/[ index_name ]/_search?scroll=1m&size=1000" \
-H "Authorization: ApiKey [ api_key ] \
-H 'Content-Type: application/json' \
-d '{"query": {"match_all": {}}}' \
-o [ index_name ].jsonfor index in [ index1 ] [ index2 ]; do
curl -X GET "https://[ elastic_endpoint ]/$index/_search?scroll=1m&size=1000" \
-H "Authorization: ApiKey [ api_key ] \
-H 'Content-Type: application/json' \
-d '{"query": {"match_all": {}}}' \
-o $index.json
doneSeems to have some dependencies that have critical vulnerabilities and doesn’t work anymore for now anyway
npm install elasticdumpelasticdump --headers='{"Authorization": "ApiKey [ api_key ]"}' --input=[ elastic_endpoint ]/[ index_name ] --output=/tmp/[ index_name ].json --type data