Public | Automated Build

Last pushed: 2 years ago
Short Description
Lightweight container with elasticsearch-dump.
Full Description

Docker elastic-dump

Lightweight Docker container with elasticsearch-dump.
It is based on Alpine OS and occupies only ~32MB.

Usage

elastic-dump is the entry point and expects parameters to be passed as Docker command.

Export

To export and zip an entire LogStash index (change ES_IP):

sudo docker run --rm walm/elasticdump \
    --input=http://ES_IP:9200/logstash-* \
    --output=$ \
    --type=data | gzip >es-logstash.gzip

To export Kibana configuration (change ES_IP):

sudo docker run --rm walm/elasticdump \
    --input=http://ES_IP:9200/kibana-int \
    --output=$ \
    --type=data >es-kibana.json

Using docker link

sudo docker run --rm --link="es:es" walm/elasticdump \
    --input=http://es:9200/kibana-int \
    --output=$ \
    --type=data >es-kibana.json

Import

To import LogStash index (change MY_DOMAIN):

sudo docker run --rm \
    -v $PWD:/data \
    walm/elasticdump \
    --input=/data/es-logstash-20151105.json \
    --output=http://MY_DOMAIN:9200/logstash-2015.11.05 \
    --type=data

To import Kibana configuration (change MY_DOMAIN):

sudo docker run --rm \
    -v $PWD:/data \
    walm/elasticdump \
    --input=/data/es-kibana.json \
    --output=http://MY_DOMAIN:9200/kibana-int \
    --type=data

Credits

This is a fork of vfarcic/docker-elasticdump

Docker Pull Command
Owner
walm
Source Repository

Comments (0)