I have an index created with jsonStr := "{"mappings": {"" + typeName + "": {"_timestamp": {"enabled": true}}}}" which is the only way that timestamp data appears to work for me. I'm using the API to add documents using pre-formated JSON. Everything seems to work fine, but on the Discover page in Kibana shows "-" under the Time column instead of the timedate stamp. Also the _timestamp field also does not show up.
You should be able to achieve what you need just by adding a field with type date to your data, just make sure to create the value manually before indexing. I would suggest naming the field @timestamp which seems to be the convention.
Once you add your own timestamp value, you'll be able see the data in Discover.
Ok bummer that adds overhead I was trying to avoid. I was hoping there was an auto time going forward. I tried using the date also but couldn't get it to work correctly. I'll try it with the @timestamp and see if that helps.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.