The best way to achieve CSV imports?

We can also use logstash to import data from csv to elasticsearch. The sample example is as shown below