Does elastic have a timestamp field as part of metadata as to when was the document written to index?

Does elastic have a timestamp field as part of metadata as to when was the document written to index ? current meta fields that i see are only these -

I have a usecase where the timestamps in the records could be different from when the records are written to the index. Looking for more info here if i can find out the time at which the records are written to index.

Thanks in advance.

You can use an ingest pipeline to get something like that, the ingest pipeline has a metadata called _ingest.timestamp which corresponds to the time when Elasticsearch received the index request for the document.

You would need to copy this field to another field if you want to store it in your document, you can see how in this example.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.