How to bulk load in elasticsearch?


(Sharat) #1

I am a newbie to ELK stack. I am exploring ways to load a bunch of json documents. I have downloaded a small number of json documents using wget.

I have created an index call apis
curl -XPUT localhost:9200/apis?pretty

Now how do i bulk load all json documents into this index? Would below work?
curl -XPOST localhost:9200/apis/internal?pretty --data-binary *.json

Is there any other option(s)?


(Mark Walkom) #2

You could use Logstash!


(system) #3