You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 2.5.0, the lwt messages (MQTT) no longer contain the tst timestamp.
This isn't a huge concern, I import all MQTT messages into Elasticsearch and if there is no timestamp then they get the current time at import. LWTs aren't that interesting, and time of import is usually fine.
However if normal logging fail for any reason, I will process and re-import data recorded by recorder. When doing this, all LWTs end up inserted at the time of import rather than when they were generated. I could parse the timestamp written by recorder, but I'm lazy :) - it's still not accurate though, as it's not when the LWT was generated.
As noted on Mastodon, this could be created_at instead. I'm not really sure it makes much difference for LWT. For location, tst and created_at may be different. For LWTs, they are both the same value. In theory the correct solution is to leave tst (regression from previous behaviour) and also add created_at (to fill in complete data to match location messages), but I'm not sure it's really worth having both. Personal preference would probably be to just add tst back and not worry about it.
The text was updated successfully, but these errors were encountered:
Thank you for the report, @mcnewton: I agree with your evaluation. tst should come back, and we could add created_at (which is the more precise term) additionally.
jpmens
changed the title
LWT messages no longer contain tst timestamp in 2.5.0
LWT messages no longer contain tst timestamp in 2.5.0 and 2.5.3
Nov 7, 2024
Since 2.5.0, the
lwt
messages (MQTT) no longer contain thetst
timestamp.This isn't a huge concern, I import all MQTT messages into Elasticsearch and if there is no timestamp then they get the current time at import. LWTs aren't that interesting, and time of import is usually fine.
However if normal logging fail for any reason, I will process and re-import data recorded by recorder. When doing this, all LWTs end up inserted at the time of import rather than when they were generated. I could parse the timestamp written by recorder, but I'm lazy :) - it's still not accurate though, as it's not when the LWT was generated.
As noted on Mastodon, this could be
created_at
instead. I'm not really sure it makes much difference for LWT. For location,tst
andcreated_at
may be different. For LWTs, they are both the same value. In theory the correct solution is to leavetst
(regression from previous behaviour) and also addcreated_at
(to fill in complete data to match location messages), but I'm not sure it's really worth having both. Personal preference would probably be to just addtst
back and not worry about it.The text was updated successfully, but these errors were encountered: