Hi Nilani,

>
>
> I have tried to learn wso2 complex event processor with the "stock quote
> analyzer" sample. I was able to run that model and get the results as
> instructed in the readme file.
>
> Now I need some kind of help to use CEP for my problem domain.
>
> I need to monitor Apache log files and generate alerts based on some rules.
>
> Could you please explain me the way to receive this data stream from log
> files as the first step.
>

There are several ways to send events to CEP., But CEP does not provide an
adaptor to receive or read events from a file by default but you can
achieve this by adding a custom adaptor to CEP. (Adaptors are the entry
points to receive and send events).. I think, you are using CEP 2.1.0 but
i'll recommend you to use CEP 3.0.0  [1] which contains many new features
that helps to achieve your task mentioned above.

You can follow the article [2] to write a custom adaptor for CEP, You can
simply read the log file line-by-line using this adaptor and send events to
CEP for processing. I think Input Text Mapping [3] will be a best option
for your scenario..

Anyway, Input file-reader (log-reader) is also a valid use-case for an
adaptor in CEP, We can consider this for our next releases.. Thanks for
bringing up this..

[1]
http://docs.wso2.org/display/CEP300/WSO2+Complex+Event+Processor+Documentation
[2]
http://wso2.com/library/articles/2013/08/writing-custom-event-adaptors-for-cep-3.0.0/
[3] http://docs.wso2.org/display/CEP300/Text+Event+Builder

Thanks & Regards,
Mohan


-- 
*V. Mohanadarshan*
*Software Engineer,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com <http://wso2.com> *
*lean.enterprise.middleware.*

email: [email protected]
phone:(+94) 771117673
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to