Import json files to elasticsearch using logstash

i have around 300000 json files in a single folder and I want to index them to elasticsearch. How do I do this using the bulk api efficiently or How do I use logstash to pass the folder name as file input plugin, json as codec and elasticsearch as output?
Please tell me what is the fastest way to index the files to es 5.6

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