"How to get the oldest document of all indexes matching an index pattern

Thank's for reply i'm new on elastic, if possible please give me a short howto to build my own sort to all the documents (howto add a timestamp to all the documents... and to use it in a query) THK's for helping me :slight_smile: