Create document with _timestamp or date ES 2.x


I want to index documents with a _timestamp or date field when I index the documents. I have read the documentation and the _timestamp option is deprecated.

I have create an template with the f"_timestamp" field and is created but it doesn't appear in Kibana, which one could it be the reason?

I finally index the documents with Spark, I'd like to have an automatic way to do it and do n't to have to index the _timestamp field explicitly.