Importing a JSON file into Elasticsearch
To import a JSON file into Elasticsearch, we will use the elasticdump
package. It is a set of import and export tools used for Elasticsearch. It makes it easier to copy, move, and save indexes. To install elasticdump
, we will require npm
and Node.js as prerequisites.
Installation of npm
In this section, npm
along with Node.js will be installed. This section covers the installation of npm
and Node.js on Ubuntu and Windows separately.
Installation of npm on Ubuntu 14.04
To install npm
on Ubuntu, perform the following steps:
- Add the official Node.js PPA:
sudo curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -
As shown in the preceding screenshot, the command will add the official Node.js ...
Get Kibana Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.