file.newTriggers does not know about the file being rotated #78
Labels
8.6-candidate
bug
Something isn't working
Team:Elastic-Agent-Data-Plane
Label for the Agent Data Plane team
The
file.newTriggers
function doesn't take the filename (or it's properties) as an argument. This means that when an intervalTrigger is created, there is no way to populate thelastRotate
field in the trigger with the creation time of the file. This results in thelastRotate
field being the zero value for a duration. When the trigger is first executed it will always report that the file needs to be rotated because difference between the zero value and now() will be greater than the interval. This leads to unexpected behavior ifrotateonstartup: false
is set.Fixes need to be backported to beats repo that have this package internally.
The text was updated successfully, but these errors were encountered: