Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indefinitely logged warning for 1-line file too large for max_line_bytes #16743

Open
jdef opened this issue Mar 9, 2023 · 1 comment
Open
Labels
domain: sources Anything related to the Vector's sources source: file Anything `file` source related type: bug A code related bug.

Comments

@jdef
Copy link

jdef commented Mar 9, 2023

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

every 10s vector logs:

Found line that exceeds max_line_bytes; discarding.

The file is mostly static. It only ever changes when a proc restarts, which is very infrequently. But vector still logs the same warning.

In this case, the file contains a single line containing more bytes than max_line_bytes allows. And since it's mostly static, it appears that vector attempts to re-read the same file every 10s (even though it hasn't changed, vector re-attempts to read contents that it knows are too large).

Configuration

# air-gapped system won't let me copy/paste,
# apologies in advance for typos.

data_dir = "/tmp"

# dd if=/dev/zero of=/tmp/boo bs=1024 count=101
[sources.zero]
type = "file"
include = ["/tmp/boo"]
fingerprint.strategy = "device_and_inode"

[sinks.out]
type = "console"
inputs = ["zero"]
encoding.codec = "json"

Version

0.25.2, 0.28.1

Debug Output

No response

Example Data

No response

Additional Context

It's worth noting that changing fingerprint.strategy to checksum doesn't help

References

No response

@jdef jdef added the type: bug A code related bug. label Mar 9, 2023
@fuchsnj fuchsnj added the source: file Anything `file` source related label Mar 9, 2023
@fuchsnj
Copy link
Member

fuchsnj commented Mar 10, 2023

Thanks for the report. I'm able to reproduce this with the config you gave on 0.28.0

@fuchsnj fuchsnj added the domain: sources Anything related to the Vector's sources label Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: sources Anything related to the Vector's sources source: file Anything `file` source related type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

2 participants