-
Notifications
You must be signed in to change notification settings - Fork 142
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
Does sometimes not pick up rotated logs #78
Comments
I see there is a bunch of known issues with hpcloud/tail, switched to a better maintained fork to see if that fixes our issues. Will post update if it works. piotr1212@6039f07 |
Been running the version with nxadm/tail on multiple mailservers for 5 days with hourly rotate and the issue did not occur anymore, before this patch it would happen every few hours. |
Even with the updated code I'm still seeing failures. I'm using the busybox syslogd launched as such |
I also still see it happening once in a while, don't know why. Is much better than before though. |
I toyed with using a named pipe but I didn’t have much luck getting the tail library to properly read data continuously (hacked the code and tried various options in the config struct). Ultimately I resorted to a cronjob to restart the collector on an interval (I run the container with supervisor so restarts are viable). |
According to the readme:
Rotating the log files while the exporter is running is OK.
While this works most of the times, it already happened twice in two days that it does not and the exporter keeps tracking deleted files.rotate config:
OS: Ubuntu 18.04 LTS
Running latest commit b050cdf
BTW could not get journald log working at all, probably related to #55
The text was updated successfully, but these errors were encountered: