Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc