You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by Mark Nuttall-Smith <ma...@gmail.com> on 2013/08/26 22:22:57 UTC

Fwd: Automatic log analysis and alert generation

Hi, I posted this question on stackoverflow (
http://stackoverflow.com/questions/18448218/automatic-log-analysis-and-alert-generation),
but thought I might get a better response here, so am crossposting... hope
it's ok!

 I would like some design advice for a centralized logging project I am
considering. I have a number of components producing logs on various
servers. Apache Flume looks like the sensible choice for streaming to a
central log server, most likely into an elasticsearch instance for querying
and analysis.

Here's my question: I would like to provide a scripting engine listening to
the flow of log events arriving on the central server. Would it make sense
to do that as an interceptor in Flume, or as a plugin to elasticsearch, or
something else completely?

Thanks,

Mark

Re: Automatic log analysis and alert generation

Posted by Mark Nuttall-Smith <ma...@gmail.com>.
Thanks for the useful information guys. The use case does require as close
to realtime processing of the log files as possible, so undeniably useful
as a perl script in the right place is, the Morphline Solr Sink looks more
like the best fit in this case. In fact just the search term 'Complex Event
Processing' has opened up a whole new avenue of investigation.

Cheers,
Mark


On 26 August 2013 23:12, Wolfgang Hoschek <wh...@cloudera.com> wrote:

> Take a look at the Apache Flume Morphline Solr Sink, for example for heavy
> duty ETL processing and
> ingestion into Solr:
>
>        http://flume.apache.org/FlumeUserGuide.html#morphlinesolrsink
>
> It provides a scripting engine that enables CEP on the flow of log events.
>
> Wolfgang.
>
> On Aug 26, 2013, at 1:22 PM, Mark Nuttall-Smith wrote:
>
> > Hi, I posted this question on stackoverflow (
> http://stackoverflow.com/questions/18448218/automatic-log-analysis-and-alert-generation),
> but thought I might get a better response here, so am crossposting... hope
> it's ok!
> >
> > I would like some design advice for a centralized logging project I am
> considering. I have a number of components producing logs on various
> servers. Apache Flume looks like the sensible choice for streaming to a
> central log server, most likely into an elasticsearch instance for querying
> and analysis.
> >
> > Here's my question: I would like to provide a scripting engine listening
> to the flow of log events arriving on the central server. Would it make
> sense to do that as an interceptor in Flume, or as a plugin to
> elasticsearch, or something else completely?
> >
> > Thanks,
> >
> > Mark
> >
> >
>
>

Re: Automatic log analysis and alert generation

Posted by Wolfgang Hoschek <wh...@cloudera.com>.
Take a look at the Apache Flume Morphline Solr Sink, for example for heavy duty ETL processing and
ingestion into Solr:

       http://flume.apache.org/FlumeUserGuide.html#morphlinesolrsink

It provides a scripting engine that enables CEP on the flow of log events.

Wolfgang.

On Aug 26, 2013, at 1:22 PM, Mark Nuttall-Smith wrote:

> Hi, I posted this question on stackoverflow (http://stackoverflow.com/questions/18448218/automatic-log-analysis-and-alert-generation), but thought I might get a better response here, so am crossposting... hope it's ok!
> 
> I would like some design advice for a centralized logging project I am considering. I have a number of components producing logs on various servers. Apache Flume looks like the sensible choice for streaming to a central log server, most likely into an elasticsearch instance for querying and analysis.
> 
> Here's my question: I would like to provide a scripting engine listening to the flow of log events arriving on the central server. Would it make sense to do that as an interceptor in Flume, or as a plugin to elasticsearch, or something else completely?
> 
> Thanks,
> 
> Mark
> 
> 


Re: Automatic log analysis and alert generation

Posted by "Cochran, David" <da...@bsee.gov>.
Mark,

FWIW, here I'm using flume to pull all the logs to a central server and
then using a package called logcheck to scan the logs for keywords/events
periodically.  A bit of perl scripting to select the logs I want and such,
I just have it run every 30 minutes as that is frequent enough for my
purposes.  I'm scanning about 100 log files (most pretty active) and
runtime is about 2 mins with my crude perl scripting.

There are likely other packages out there that do things in a similar
fashion, but the logcheck scripts have served me well for over 15 years, so
to say the least it's inner workings are familiar. Might be worth looking
at.

Dave





On Mon, Aug 26, 2013 at 3:22 PM, Mark Nuttall-Smith <
marknuttallsmith@gmail.com> wrote:

> Hi, I posted this question on stackoverflow (
> http://stackoverflow.com/questions/18448218/automatic-log-analysis-and-alert-generation),
> but thought I might get a better response here, so am crossposting... hope
> it's ok!
>
>  I would like some design advice for a centralized logging project I am
> considering. I have a number of components producing logs on various
> servers. Apache Flume looks like the sensible choice for streaming to a
> central log server, most likely into an elasticsearch instance for querying
> and analysis.
>
> Here's my question: I would like to provide a scripting engine listening
> to the flow of log events arriving on the central server. Would it make
> sense to do that as an interceptor in Flume, or as a plugin to
> elasticsearch, or something else completely?
>
> Thanks,
>
> Mark
>
>