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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loss of logs in some cases when reading cyclic log files #20512

Closed
FengZh61 opened this issue May 17, 2024 · 0 comments
Closed

Loss of logs in some cases when reading cyclic log files #20512

FengZh61 opened this issue May 17, 2024 · 0 comments
Labels
type: bug A code related bug.

Comments

@FengZh61
Copy link

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

For example, writing logs to out.log, when this file reaches a certain size, out.log will be renamed to out.lo3, and then the out.lo1 file will be renamed to out.log to continue writing, in this case, there will be a problem with reading the logs, and part of the logs will be lost.Restarting the service will restore normal collection

Configuration

data_dir="/tmp/"
[sources.fd]
type = "file"
include = [ "/tmp/lg/out.lo*" ]

[sinks.print]
type = "console"
inputs = ["fd"]
encoding.codec = "json"
encoding.timestamp_format="unix"

Version

0.27.0

Debug Output

No response

Example Data

No response

Additional Context

No response

References

No response

@FengZh61 FengZh61 added the type: bug A code related bug. label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

1 participant