2015-07-01 13:15 GMT+03:00 Rajesh M <[email protected]>:
> Hi Risto,
>
> I am implementing a perl script which basically accepts the input file and
> time in sec, after search for particular pattern and take out the time
> stamp and adds input time to that, generates "New Time stamp". Later the
> output is syslog events from input file between Original TS and New TS.
>
> my .conf file:
> ------------------
> type=Single
> ptype=RegExp
> pattern="ALARM RAISE 70307" [Very first rasie event in alarm.log]
> desc=$0
> action=spawn /var/test/my.pl
>
> type=Single
> ptype=RegExp
> pattern=.*logf started
> desc=Matched event
> action=write /home/test.out
>
>
> Basically I am trying to trigger the scrpit based on my 1st rule match and
> wants to fed the script output to SEC for 2nd rule match.
>
> Whenever I was executing this .conf, the script was calling and it
> wouldn't goto 2nd rule and also the script was exectuing how many number of
> times the 1st rule matches.
>
Please suggest what is the correct way of doing this operation in SEC.
>
since you have used the single rule for triggering the 'spawn' action,
having a separate script instance for each "ALARM RAISE" event is the
expected behavior.
What is the actual purpose of the my.pl script? It's description in your
mail is kind of a short and I couldn't follow it :-(
risto
> Thanks & Regards,
> Karthik
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Simple-evcorr-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
>
>
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users