3 ms·
I see what you are getting at, but my experience as one of the "mailing list" people for Fluentd (an open source log collector) has been a bit different, especi
by kiyoto 12y ago
I see what you are getting at, but my experience as one of the "mailing list" people for Fluentd (an open source log collector) has been a bit different, especially when a lot of data is written to a file rapidly: For example, when you try to tail a log file with log rotation reliably, you run into all sorts of edge cases. Such issues shouldn't exist if files and streams were truly interchangeable in the context of logging.
- antocv 12y ago> when you try to tail a log file with log rotation reliably, Then you do tail --follow -f yourfile. Files and streams are the same thing.
- bluefinity 12y agoI think you mean tail -F yourfile. --follow and -f are the same thing.
- antocv 12y agoNo, I meant --follow=name because the default is descriptor. -f is short for --follow=descriptor
- tszming 12y agoWhat issue you are experiencing with fluentd in_tail plugin? (As it already support log rotation)
- kiyoto 12y agoSorry that my point wasn't clear: it's not so much that I experience issues with in_tail. in_tail is actually solid at detecting log rotation, etc. My point was this is not a trivial problem, and a lot of the code inside in_tail.rb is for detecting and handling log rotation gracefully.