Skip to content

Instantly share code, notes, and snippets.

@notsobad
Created July 20, 2020 05:50
Show Gist options
  • Save notsobad/25cd904a9551cb57b0ae5499be323172 to your computer and use it in GitHub Desktop.
Save notsobad/25cd904a9551cb57b0ae5499be323172 to your computer and use it in GitHub Desktop.
docker run -v `pwd`:/data/ -e NODE_TLS_REJECT_UNAUTHORIZED=0 --rm -ti elasticdump/elasticsearch-dump \
--input=https://user:[email protected]/dir/ \
--input-index=index/type \
--searchBody="{\"query\":{\"term\":{\"key\": \"xxxx\"}}}" \
--output=/data/xxx.json \
--size=1000 \
--concurrency=5 \
--type=data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment