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
Describe the bug
Filelogreceiver doesn't read from file in case there are two or more empty lines at the beginning when the start_at: beginning is used.
Steps to reproduce
Create the following logs.txt file to read the data from:
2022-05-18T14:16:59.785+0200 info service/collector.go:146 Everything is ready. Begin running and processing data.
2022-05-18T14:16:59.988+0200 info file/file.go:174 Started watching file {"kind": "receiver", "name": "filelog", "operator_id": "file_input", "operator_type": "file_input", "path": "logs.txt"}
Try to add anything into the file:
echo six >> logs.txt
echo seven >> logs.txt
Nothing happens at this point, file is not being read.
What did you expect to see?
I'd expect to see all the logs - old a new ones - collected.
What did you see instead?
Collector doesn't receive the data from the file at all.
perk
changed the title
Filelogreceiver doesn't read from file in case there are two or more empty lines at the beginning
[receiver/filelogreceiver] Filelogreceiver doesn't read from file in case there are two or more empty lines at the beginning
May 18, 2022
Describe the bug
Filelogreceiver doesn't read from file in case there are two or more empty lines at the beginning when the
start_at: beginning
is used.Steps to reproduce
Create the following
logs.txt
file to read the data from:Apply the following configuration:
Run the otelcol:
See the following lines:
Try to add anything into the file:
Nothing happens at this point, file is not being read.
What did you expect to see?
I'd expect to see all the logs - old a new ones - collected.
What did you see instead?
Collector doesn't receive the data from the file at all.
What version did you use?
0.51.0
What config did you use?
Environment
OS: Ubuntu 20.04, MacOS 12.3.1
The text was updated successfully, but these errors were encountered: