You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

elasticsearch-import

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasticsearch-import

import JSON files into your elasticsearch

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
6
100%
Maintainers
1
Weekly downloads
 
Created
Source

elasticsearch-import

elasticsearch-import import JSON files into your elasticsearch

Installation

$> npm install -g elasticsearch-import

$> elasticsearch-import

Launch elasticsearch-import

$> elasticsearch-import --help
Usage: node elasticsearch-import.js

	-i, --index=ARG  index where you will import
	-t, --type=ARG   type of docs that you will import
	    --input=ARG  name of file the JSON will be import
	    --withId     update with the _id in the JSON
	-P, --port=ARG   port to connect to
	-H, --host=ARG   server to connect to
	-h, --help       display this help
	-v, --version    show version

How to use the elasticsearch-import

$> elasticsearch-import --input fileToImport.json --host localhost --port 9200 --index test --type test

You can use the --withId option if you want to keep the _id of every object on the JSON file
otherwise it will reattribute a _id for every object

Notes

For export data from elasticsearch you can use the elasticsearch-export tool.

More information on : https://github.com/boubaks/elasticsearch-export

Keywords

elasticsearch

FAQs

Package last updated on 15 Nov 2016

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