Beginner: How to index json file into Elasticsearch


I have a json file with about 1000 documents and I want to index this file, but I really do not understand how I should do it. I already googled and saw things about the Bulk API but it does not work out for me on Windows. Has anybody tips how I can easily index the whole file with several documents in it on a Windows computer?

Thanks in advance!

If you would like to do it directly in Elasticsearch through one of the APIs you will first have to create the index and then use e.g. the Index API or possibly the Bulk API. I have not done that so can really help there.

Another possibility is to feed the JSON to e.g. Logstash which would create the Elasticsearch index for you based on the output settings you specify. The same can be done with many other tools, like Filebeat.

There are many other tools to load data into Elasticsearch as well but these are the ones I have used.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.