Getting timestamps for older events

Hello,

I have already created a lot of events in my Eventstore. I have a requirement to grab the timestamp of each event and put it in a database. I know there is a way to add an entry in the event so I can get the timestamp for all the new events. But, how should I grab the timestamp of older events?

thanks!

There is already a time stamp on them. But no you can’t update an event you would have to rewrite the stream

For the list you can after v3 get the time stamp on any event using https://github.com/EventStore/EventStore/blob/master/src/EventStore/EventStore.ClientAPI/RecordedEvent.cs#L45

What about the “updated” field you can grab via an HTTP GET on the Event?

Look at Reading Streams Documentation.

You can unroll the stream and for each event save the “updated” field in the database.

Mirko

It is the same field it just was not exposed over http previously.

Sorry over tcp previously