Is there a way to check when a stream was last read? not necessarily who read it like a consumer group, just generally XREAD I thought it would be under XINFO as that has a lot of other stats and it seemed like it would be included but it's not? I imagine this is already logged somewhere?

Is there an internal Lua command that could access it maybe?

Comment From: oranagra

@gittyup2018 do you want the time stamp? or the stream ID that was read? I.e. A recent timestamp could still mean the entry that was read is very old. Can you please provide some details on the use case for that?

Comment From: gittyup2018

Yes, I just need the timestamp..but the ID might be useful as well for others and completeness..

My understanding is there's no way to check if a client is "listening" like a pubsub subscriber, but with the last read timestamp it would give a hint about who is/was recently listening and when a client last xread from the stream..similar to object's idletime and I think it would be very helpful in debugging too:

An old timestamp would be very useful - that would mean the stream hasn't been accessed in a while and if the xread was automated by a server/service it would mean that server/service is down.