-
Notifications
You must be signed in to change notification settings - Fork 537
Closed
Labels
Description
Component(s)
loki.source.file
What's wrong?
When using tail_from_end we run getLastLinePosition. This one does not take encoding into account. This would be a problem for e.g. UTF-16LE because it encodes newlines as 0A 00 so we would point offset at 00 messing up the first line.
Steps to reproduce
Use loki.source.file on a UTF-16LE encoded file and set tail_from_end = true.
System information
No response
Software version
No response
Configuration
Logs
Tip
React with 👍 if this issue is important to you.
Reactions are currently unavailable