Member-only story

Elasticsearch Bulk Insert JSON Data

Onexlab
6 min readFeb 11, 2021

--

In this article, We will show you how to insert bulk JSON data to Elasticsearch.

We hope you are familiar with Elasticsearch if not, don’t worry you will learn from this article.

Video

Initial Setup

The first step is to setup Elasticsearch on your system. We are using Docker to setup. Make sure you have installed docker on your system or can download it from the Docker webpage.

Let’s start

Create a new file docker-compose.yml under any directory, In our case, we are using the following project structure.

Project (Directory)
├── docker-compose.yml (File)

docker-compose.yml

In the above file, we are creating 2 containers one for Elasticsearch and the second for Kibana

To start containers, Run the following command in the terminal

docker-compose up

When you run the above command you will see the following output in the terminal.

Verify Running Elasticsearch

To verify, Running container of Elasticsearch. Open the browser and type the following URL

http://localhost:9200

You will see the JSON response in the browser as shown below in the screenshot.

--

--

Onexlab
Onexlab

No responses yet

Write a response