The command below filters the indexes in Elasticsearch based on the value in the `--searchBody` field and dumps them to the "/tmp/es_backup" folder.

./multielasticdump --direction=dump --match='apilogs*' 
--input=http://<ELASTICSEARCH_IP>:9200 
--ignoreType='mapping,settings,template' 
--output=/tmp/es_backup --searchBody="{\"query\": {\"terms\": { \"apiGatewayId\": [33,38,96,97,99,100,101,82,80]}}}"  
--overwrite 
--ignoreChildError=true 
--ignoreMapping=true 
--ignoreSettings=true 
--ignoreTemplate=true 
--ignoreAlias=true
ACTIONSCRIPT3


Installation:

yum install npm
npm install elasticdump

npm install  --no-bin-links elasticdump
BASH


More information: https://github.com/elasticsearch-dump/elasticsearch-dump