Find source code of index date in elasticsearch output plugin

So in fact its not logstash who puts the date in the index, but ElasticSearch itself. Logstash only gives the format (or in other cases, the field) it wants to use for that event and then ES does the rest.

Thank you very much.