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

Missing first lines of a new file #225

Open
CarloBlohm opened this issue Jul 11, 2014 · 1 comment
Open

Missing first lines of a new file #225

CarloBlohm opened this issue Jul 11, 2014 · 1 comment

Comments

@CarloBlohm
Copy link

If a new log file is created while runtime, the first lines are ignored. Till the file is registered.
How to reproduce this:

  • Create a new file with content while logstash-forwarder is running
  • logstash-forwarder sees the file and get its offset, which is > 0
  • new content to the file will be send to logstash

How i fixed it:
I set the global variable from_beginning to true when the registra send events. So all new files will be read from beginning.

How it should maybe fixed:
All files which are created after the start of logstash-forwarder should be readed from offset = 0.

Hopefully i could describe cleary what's my problem is. Thank you for your awesome programm.

@psych0d0g
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants