LEDE and snort

How can I make snort to post a log into system if any 5 rules ware broken in a minute time interval.

This does not look like a LEDE-specific question, I would rather as it to the snort people.