https://github.com/taskrabbit/elasticsearch-dump

  
Output elasticsearch->json  
  
docker run --rm -ti -u root -v /mnt/sda1/var/lib/docker/volumes/xxxxxxx/_data/data:/tmp taskrabbit/elasticsearch-dump   --input=http://192.168.99.101:9200/filebeat-6.5.4-etl-logs   --output=/tmp/etl-logs.json   --type=mapping  
  
docker run --rm -ti -u root -v /mnt/sda1/var/lib/docker/volumes/xxxxxxx/_data/data:/tmp taskrabbit/elasticsearch-dump   --input=http://192.168.99.101:9200/filebeat-6.5.4-etl-transactions  --output=/tmp/etl-transactions.json   --type=mapping  
  
docker run --rm -ti -u root -v /mnt/sda1/var/lib/docker/volumes/xxxxxxx/_data/data:/tmp taskrabbit/elasticsearch-dump   --input=http://192.168.99.101:9200/filebeat-6.5.4-etl-receipts  --output=/tmp/etl-receipts.json   --type=mapping  
  
docker run --rm -ti -u root -v /mnt/sda1/var/lib/docker/volumes/xxxxxxx/_data/data:/tmp taskrabbit/elasticsearch-dump   --input=http://192.168.99.101:9200/filebeat-6.5.4-etl-contracts  --output=/tmp/etl-contracts.json   --type=mapping  
  
docker run --rm -ti -u root -v /mnt/sda1/var/lib/docker/volumes/xxxxxxx/_data/data:/tmp taskrabbit/elasticsearch-dump   --input=http://192.168.99.101:9200/filebeat-6.5.4-etl-blocks  --output=/tmp/etl-blocks.json   --type=mapping  
  
  
docker run --rm -ti -u root -v /mnt/sda1/var/lib/docker/volumes/xxxxxxx/_data/data:/tmp taskrabbit/elasticsearch-dump   --input=http://192.168.99.101:9200/filebeat-6.5.4-etl-logs   --output=/tmp/etl-logs-data.json   --type=data  
  
docker run --rm -ti -u root -v /mnt/sda1/var/lib/docker/volumes/xxxxxxx/_data/data:/tmp taskrabbit/elasticsearch-dump   --input=http://192.168.99.101:9200/filebeat-6.5.4-etl-transactions   --output=/tmp/etl-transactions-data.json   --type=data  
  
docker run --rm -ti -u root -v /mnt/sda1/var/lib/docker/volumes/xxxxxxx/_data/data:/tmp taskrabbit/elasticsearch-dump   --input=http://192.168.99.101:9200/filebeat-6.5.4-etl-receipts   --output=/tmp/etl-receipts-data.json   --type=data  
  
docker run --rm -ti -u root -v /mnt/sda1/var/lib/docker/volumes/xxxxxxx/_data/data:/tmp taskrabbit/elasticsearch-dump   --input=http://192.168.99.101:9200/filebeat-6.5.4-etl-contracts   --output=/tmp/etl-contracts-data.json   --type=data  
  
docker run --rm -ti -u root -v /mnt/sda1/var/lib/docker/volumes/xxxxxxx/_data/data:/tmp taskrabbit/elasticsearch-dump   --input=http://192.168.99.101:9200/filebeat-6.5.4-etl-blocks   --output=/tmp/etl-blocks-data.json   --type=data  
  
  
  
Innput json->elasticsearch  
  
docker run --rm -ti -u root -v data:/tmp taskrabbit/elasticsearch-dump   --input=/tmp/etl-contracts.json  --output=http://xxx.xxx.xxx.xxx:9200/filebeat-6.5.4-etl-contracts   --type=mapping  
docker run --rm -ti -u root -v data:/tmp taskrabbit/elasticsearch-dump   --input=/tmp/etl-contracts-data.json  --output=http://xxx.xxx.xxx.xxx:9200/filebeat-6.5.4-etl-contracts   --type=data  
  
docker run --rm -ti -u root -v data:/tmp taskrabbit/elasticsearch-dump   --input=/tmp/etl-receipts.json  --output=http://xxx.xxx.xxx.xxx:9200/filebeat-6.5.4-etl-receipts   --type=mapping  
docker run --rm -ti -u root -v data:/tmp taskrabbit/elasticsearch-dump   --input=/tmp/etl-receipts-data.json  --output=http://xxx.xxx.xxx.xxx:9200/filebeat-6.5.4-etl-receipts   --type=data  
  
docker run --rm -ti -u root -v data:/tmp taskrabbit/elasticsearch-dump   --input=/tmp/etl-transactions.json  --output=http://xxx.xxx.xxx.xxx:9200/filebeat-6.5.4-etl-transactions   --type=mapping  
docker run --rm -ti -u root -v data:/tmp taskrabbit/elasticsearch-dump   --input=/tmp/etl-transactions-data.json  --output=http://xxx.xxx.xxx.xxx:9200/filebeat-6.5.4-etl-transactions   --type=data  
  
docker run --rm -ti -u root -v data:/tmp taskrabbit/elasticsearch-dump   --input=/tmp/etl-blocks.json  --output=http://xxx.xxx.xxx.xxx:9200/filebeat-6.5.4-etl-blocks   --type=mapping  
docker run --rm -ti -u root -v data:/tmp taskrabbit/elasticsearch-dump   --input=/tmp/etl-blocks-data.json  --output=http://xxx.xxx.xxx.xxx:9200/filebeat-6.5.4-etl-blocks   --type=_data