”;
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 new index in Kibana we can use following command in dev tools −
Create Index USING PUT
The command to create index is as shown here −
PUT /usersdata?pretty
Once you execute this, an empty index userdata 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 usersdata index −
So we have 2 records in usersdata 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 usersdata 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 usersdata index in it as deleted the index.
”;