-
Notifications
You must be signed in to change notification settings - Fork 543
tail: New keep_file_handle and fstat_interval_nsec options for tail i… #2180
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
base: master
Are you sure you want to change the base?
Conversation
WalkthroughUpdates Tail input documentation: adds Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…nput #11151 Signed-off-by: David Garcia <[email protected]> Signed-off-by: deivid.garcia.garcia <[email protected]>
655a930 to
f22a8d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
pipeline/inputs/tail.md (1)
85-95: Remove duplicate hint box on Unicode.Encoding.Lines 85-89 and 91-95 contain identical warning text about the
Unicode.Encodingparameter. Delete the redundant section to avoid reader confusion.{% endhint %} -{% hint style="info" %} -The `Unicode.Encoding` parameter is dependent on the `simdutf` library, which is itself dependent on C++ version 11 or later. In environments that use earlier versions of C++, the `Unicode.Encoding` parameter will fail. - -Additionally, the `auto` setting for `Unicode.Encoding` isn't supported in all cases, and can make mistakes when it tries to guess the correct encoding. For best results, use either the `UTF-16LE` or `UTF-16BE` setting if you know the encoding type of the target file. -{% endhint %}
🧹 Nitpick comments (1)
pipeline/inputs/tail.md (1)
479-509: Align SMB/SAMBA section wording with configuration table for consistency.Line 481 states that setting
keep_file_handletofalse"disables log rotation detection," but the configuration table (line 40) provides more nuanced guidance: "Rotation will be detected as a truncation, so some logs might be lost."Clarify that rotation detection is modified, not entirely disabled, to set proper expectations for users.
Consider updating line 481 to:
-...Note that this disables log rotation detection. +...Note that log rotation will be detected as a truncation event, which may result in some log loss.This aligns with the more detailed explanation in the configuration table and provides users with a clearer understanding of the tradeoff.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
pipeline/inputs/tail.md(2 hunks)
🔇 Additional comments (2)
pipeline/inputs/tail.md (2)
40-41: Configuration parameters clearly documented with appropriate defaults.The new
keep_file_handleandfstat_interval_nsecparameters are well-described with clear guidance on tradeoffs (e.g., rotation detection implications, IOPS sensitivity). The placement in the table is appropriate, and defaults are specified.
511-595: Character Encoding Conversion section is well-structured and provides excellent guidance.The expanded section clearly explains when and how to use encoding conversion, with good organization of encoding types and practical examples. The separation between
Unicode.EncodingandGeneric.Encodinguse cases is helpful.
alexakreizinger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for submitting a PR :)
I added a few suggestions based on our style guide, but let me know if I got anything wrong. (also, I believe that "Samba" should be a proper noun and not an acronym, but if that's not correct I can fix it!)
Co-authored-by: Alexa Kreizinger <[email protected]> Signed-off-by: David <[email protected]>
Co-authored-by: Alexa Kreizinger <[email protected]> Signed-off-by: David <[email protected]>
Co-authored-by: Alexa Kreizinger <[email protected]> Signed-off-by: David <[email protected]>
See fluent/fluent-bit#11151
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.