-
Notifications
You must be signed in to change notification settings - Fork 418
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
duplicate entries #474
Comments
Best to upgrade to 0.4.0 which has many fixes. The 0.3.1 had several issues and one of them did mean truncation could be incorrectly detected if certain patterns of writes happened. |
ahh i see the repo is back, it was there, went 404 here #184 So putting it back and hopefully there is a new logstash forwarder inside. |
hey @driskell thanks for you help, but aren't you the author of https://github.com/driskell/log-courier ? Looks like I should be using that instead, no? You've got a ppa and seems like you've fixed a bunch of issues that annoy me with lsf (like it's handling of stdin). |
Yes I am the author. You could use it and it does give me more options to help out. I'm aware there's those that prefer to stick with Elastic sources though so I still help out here when I can (and issues in LSF can sometimes be issues in LC), and telling everyone to just use LC wouldn't really be helpful :-) |
@oppianmatt Please reopen this issue if this is not fixed for you yet |
We've got logs being mailed out by logstash when they meet a criteria. But sometimes the same log entry will get mailed out multiple times.
For example, this message. We got it when it happened:
received at 06:28 GMT so the time it happened.
Then many many hours later we get this at 17:10 GMT:
obviously the same message.
Now our setup, we have python logging via the syslog handler into rsyslog on the same machine. It goes to local1 and it's all json encoded.
rsyslog is set to log all of local1 to one file,
/var/log/pitchup.log
logrotate is set to rotate those logs daily, as you can see here.
Our logrotate.conf:
So logrotate is not the issue, since the log didn't rotate. We got an error this morning and the same one hours later without rotate.
logstash-forwarder is installed via apt. It runs like this:
The contents of the config file:
Around that time it says the file was truncated.
The text was updated successfully, but these errors were encountered: