Hello, I need to count event number and report it every minutes. I'm looking for a more elegant and powerfull way (I have to analyze 3000 req/s) to do it than what I found already (see bellow).
I saw http://sourceforge.net/mailarchive/message.php?msg_id=27274908 but can't figure out if this can help me. My current config ## INITialize SEC type=Single ptype=RegExp pattern=(SEC_STARTUP|SEC_RESTART) context=SEC_INTERNAL_EVENT desc=Init counters with 0 action=assign %REQ_NBR_COUNT 0; \ assign %REQ_2xx_COUNT 0; ## Extract HTTP code from request and through event type=Single ptype=RegExp pattern=.*" (\d)[0-9]{2} \d+ .* desc=Request received action=event 0 REQ_$1 ## Counts 2xx HTTP code number type=Single ptype=SubStr pattern=REQ_2 continue=TakeNext desc=HTTP 2xx code found action=eval %REQ_2xx_COUNT ( ++$REQ_2xx_COUNT ) [...] skipped other counters as they use the same definition as above [...] ## Counts requests number type=Single ptype=SubStr pattern=REQ_ desc=Request counter action=eval %REQ_NBR_COUNT ( ++$REQ_NBR_COUNT ) ## Flush counters every minute type=Calendar time=* * * * * desc=monitoring.logs.http context=!SEC_INTERNAL_EVENT action=write - - %s.req[tot] %REQ_NBR_COUNT; \ eval %REQ_NBR_COUNT ( $REQ_NBR_COUNT = 0 ); \ write - - %s.req[2xx] %REQ_2xx_COUNT; \ eval %REQ_2xx_COUNT ( $REQ_2xx_COUNT = 0 ); Any comment welcomed, Regards, JB ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Simple-evcorr-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
