On Wed, Sep 18, 2013 at 4:50 PM, Michael Biebl <[email protected]> wrote:

> Hi,
>
> I've been using log2mail to monitor log files in real-time and send
> emails when certain messages matched given patterns.
>
> Unfortunately this useful tool has been removed from the Debian
> archive, so I was looking for alternatives but didn't really find one.
>
> An idea that came to mind was, to use rsyslog to monitor arbitrary log
> files (via imfile), use its powerful message processing engine to do
> the matching and send notifications via ommail.
> The log files in need to monitor are created by the application itself
> and unfortunately can't be easily switched to use syslog
>
> Do you think this is a sensible approach or do you propose alternatives?
>

yes, this sounds like a good idea. It also comes at the right time, as I am
preparing to do a major re-write of imfile. Among others, it will work
based on inotify (if available) and be able to monitor directories for
newly created files (at least that's the plan).


> I don't think ommail is flexible enough to allow more advanced
> features that log2mail provides [2] like templating, resendtime or
> sendtime, or is there?
>

Not yet, but we could gradually move these in. Sounds like they make a lot
of sense.

A problem may be versions. This of course is all brand-new stuff, so it
would need to go into the -devel (7.5). Would that still help you?

On the implementation side, I can probably hope to have around one day per
week to work on that project (that's roughly what I have planned for the
imfile rewrite) - so it's not an ultra-immediate thing...

Rainer

>
> Michael
>
>
>
> [1] http://people.debian.org/~enrico/log2mail/
> [2] http://people.debian.org/~enrico/log2mail/log2mail.conf_manpage.html
>
> --
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to