Import of huge quantity of csv files in elasticsearch with logstash

You'd probably be better off running logstash with -e and pass the config in via the command line. Then you can programatically iterate over the various files and generate appropriate configs.