I could maybe be convinced, but I'm leaning negative on this one. Logstreamer is already a pretty complicated feature, with a lot of fiddly code. I'm loathe to add yet more features / complexity unless the win is big. It doesn't seem to terribly unreasonable for users to create an empty folder on the machine in question.
-r On 01/01/2016 02:55 PM, Eric LEMOINE wrote:
Hi First of all thank you for Heka! The logstreamer plugin fails to initialize with "lstat /var/log/foo: no such file or directory" if the log directory doesn't exist. In my case I would like the logstreamer plugin to do nothing if the log directory doesn't exist. And I'd like it to "wake up" and start processing logs when it detects that the log directory now exists and includes log files. It's like having Heka adapt to its environment. Untested but this is the kind of patch I am thinking of: <https://github.com/mozilla-services/heka/compare/dev...elemoine:logstreamer>. What do you think? Would that behaviour make sense to you? Thanks! _______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka
_______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka

