Kibana – Dev Tools

We can use Dev Tools to upload data in Elasticsearch, without using Logstash. We can post, put, delete, search the data we want in Kibana using Dev Tools.

To create a new index in Kibana we can use the following command in dev tools −

Create Index USING PUT

The command to create an index is as shown here −

PUT /usersdata?pretty

Once you execute this, an empty index user-data is created.

We are done with the index creation. Now, will add the data in the index −

Add Data to Index Using PUT

You can add data to an index as follows −

We will add one more record in users data index −

So we have 2 records in the user’s data index.

Fetch Data from Index Using GET

We can get the details of record 1 as follows −

You can get all records as follows −

Thus, we can get all the records from users’ data as shown above.

Update data in Index using PUT

To update the record, you can do as follows −

We have changed the name from “Ervin Howell” to “Clementine Bauch”. Now we can get all records from the index and see the updated record as follows −

Delete data from index using DELETE

You can delete the record as shown here −

Now if you see the total records we will have only one record −

We can delete the index created as follows −

Now if you check the indices available we will not have the user’s data index in it as deleted the index.

Leave a Reply