Filebeat fails to decode a zero-value time.Time
from the registry
#34648
Labels
bug
Stalled
Team:Elastic-Agent
Label for the Agent team
Team:Elastic-Agent-Data-Plane
Label for the Agent Data Plane team
main
The registry entry for a filestream input looks like this:
The
updated
field is a timestamp encoded by ourtypeconv
package.time.Time
are encoded as a array of twouint64
, the code that does this transformation is:https://github.com/elastic/elastic-agent-libs/blob/f17cb1de6337603f16629d4754bcf8c27e0cc8be/transform/typeconv/typeconv.go#L217-L268.
This code alone can successfully encode/decode a zero-value
time.Time
, however when it gets serialised/deserialised as JSON by Filebeat's registry it is read as0000-12-31T23:55:44Z
, here is an example of the state being dumped by delve:Only the first entry from a file in the registry contains a zero-value timestamp in the
updated
field, at the moment I am not aware of any bug caused by this behaviour.updated
seem only to be used to perform some store clean up tasks.The text was updated successfully, but these errors were encountered: