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

Last two lines of a log file not being forwarded #519

Open
elssar opened this issue Aug 31, 2015 · 0 comments
Open

Last two lines of a log file not being forwarded #519

elssar opened this issue Aug 31, 2015 · 0 comments
Labels

Comments

@elssar
Copy link

elssar commented Aug 31, 2015

I have a log file which is very sporadically written to - one line every few hours, or even days. I noticed that entries from that file weren't showing up on elasticsearch.

On further investigation I noticed that logstash-forwarder seems to not send the last two lines from a log file. So if I have two logs entries in the file, they aren't sent to elasticsearch. When I add a third entry, the first entry is sent to elasticsearch.

Is there a way to ensure that logstash-forwarder forwards logs as soon as they are appended to the log?

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

No branches or pull requests

2 participants