What I’m looking for is exactly what Kibana does when installing sample data.
It imports all the data of the samples and updates the timestamp relative to current time: https://www.elastic.co/guide/en/kibana/master/getting-started.html#get-data-in
What is the best approach for doing that?