The documentation says that documents must contain a @timestamp field in order to be accepted by a datastream.
I'm trying to make it optional by declaring a default ingest_pipeline in a datastream template that will automatically add a timestamp field. It works perfectly when I use a simple index template instead. Unfortunatly, it doesn't seem to work with a datastream template ("data stream timestamp field [@timestamp] is missing").
So my question is : Do you think it's possible to automatically add a @timestamp to a document with an ingest pipeline so that a datastream can accept it ?
Thank you for your help