Closed deric closed 4 years ago
My best guess is that clearerr() is not being called under the covers and it is stuck at the initial EOF. I will take a look shortly (I should probably just stop using fh:lines and fix it once and for all).
Please try this out: https://github.com/mozilla-services/lua_sandbox_extensions/pull/525 It now requires the gzfile module since I added the tail function there but it allows tail to work with compressed and uncompressed logs.
@deric
@trink Thanks!
I'm getting this error:
2020-07-29T09:33:41 process_message() /usr/share/luasandbox/sandboxes/heka/input/tail.lua:165: bad argument #2 to 'seek' (number expected, got string)
Sorry, that is because the tests don't test the single run old checkpoint migration code, fixed
Test and cleanup finished, merged
I've been testing this for a few days, so far no issues appeared. Thanks!
I have a simple test hindsight setup with low traffic on Debian 10. tail input should read rotated nginx logs:
hindsight reads the nginx log file till the end and then stops:
while the file size is constantly being increased:
From strace output it's apparent that
hindsight.cp
,utilization.tsv
andplugins.tsv
are being updated, but hindsight is not noticing any changes in the log file.The filesystem is ext4
timestamps are as well being updated:
Any idea what's wrong?
Package versions:
2.28-10
0.16.0
1.6.8