Socket
Book a DemoInstallSign in
Socket

xgh.io/elasticdump

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xgh.io/elasticdump

Go Modules
Version
v0.6.0
Version published
Created
Source

elasticdump

a simple elasticsearch dump & load tool.

Why was elasticdump created?

The ElasicSearch did not offer a dump tool, and the only tool provided at https://github.com/elasticsearch-dump/elasticsearch-dump depends on a nodejs environment, which is not convenient.

INSTALL

  • go install github.com/shinexia/elasticdump

  • or download a prebuilt binary here: https://github.com/shinexia/elasticdump/releases/

  • or build from source

git clone https://github.com/shinexia/elasticdump.git
cd elasticdump
make

EXAMPLE

$ ./elasticdump 


    ┌──────────────────────────────────────────────────────────┐
    │ ElasticDump                                              │
    │ a simple dump/load data/mapping from elasticsearch       │
    │                                                          │
    │ Please give us feedback at:                              │
    │ https://github.com/shinexia/elasticdump/issues           │
    └──────────────────────────────────────────────────────────┘

Example usage:

        elasticdump --host http://localhost:9200 --index elasticdumptest test gen -v=10

        elasticdump --host http://localhost:9200 --index elasticdumptest dump mapping

        elasticdump --host http://localhost:9200 --index elasticdumptest dump data -v=4

        elasticdump --host http://localhost:9200 --index elasticdumptest load mapping --delete

        elasticdump --host http://localhost:9200 --index elasticdumptest load data

Usage:
  elasticdump [command]

Available Commands:
  completion  generate the autocompletion script for the specified shell
  delete      delete index from elasticsearch
  dump        dump mapping/data from elasticsearch
  gen         gen testdata to elasticsearch
  help        Help about any command
  load        load mapping/data to elasticsearch

Flags:
  -h, --help   help for elasticdump

Use "elasticdump [command] --help" for more information about a command.

LICENSE

MIT License

FAQs

Package last updated on 08 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts