this might be a good case for a systemd path unit or inotify if you're not
on a systemd-based system; rather than having heka spin up the input, you
could spin up a heka instance when the target files exist

On Mon, Jan 4, 2016 at 3:09 PM, Rob Miller <[email protected]> wrote:

> 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
>
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka

Reply via email to