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 −
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 −
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.
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.
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 −
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.