On Mon, 27 Jan 2014, andrewarnier wrote:

Hi all,

I have Create a SEC configuration file and set a SEC rule  as follows:

type=PairWithWindow

ptype=RegExp

pattern= (.+) (.+) (.+) (.+) Loss Of Signal

desc= $1_$2_$3_$4_lossOfSignal

action=write -=p1=$1_p2=$2_p3=$3_p4=$4_patter1

ptype2=RegExp

pattern2= Loss Of Signal

the first thing that jumps out at me is that there is a very strong probability that the same log line will match pattern and pattern2, I think this can cause a lot of confusion.

David Lang

desc2=_lossOfSignal:Flapping

action2=write - Loss Of Signal Flapping within 5 second window!

window=5



Save snmptt_test_sec.cfg and execute the following command:

$ perl /usr/local/sbin/sec.pl -conf=snmptt_test_sec.cfg  -input=-

SEC (Simple Event Correlator) 2.4.1

Reading configuration from snmptt_test_sec.cfg

1 rule loaded from snmptt_test_sec.cfg





Type the following lines of input:

Sun Dec  1 12:12:41 2013 .1.3.6.1.4.1.3607.6.10.30.0.430 Critical "cisco"
CISCO-15454 - CISCO -15454 Loss Of Signal in FAC-15-1
(criticalServiceAffecting),ifIndex=61442

Sun Dec  1 12:12:41 2013 .1.3.6.1.4.1.3607.6.10.30.0.430 Critical "cisco"
CISCO-15454 - CISCO -15454 Loss Of Signal in FAC-15-1
(criticalServiceAffecting),ifIndex=61442



In this case, the ``events'' were not matched the rule , as follows ,



$ perl /usr/local/sbin/sec.pl -conf=snmptt_test_sec.cfg  -input=-

SEC (Simple Event Correlator) 2.4.1

Reading configuration from snmptt_test_sec.cfg

2 rules loaded from snmptt_test_sec.cfg

Sun Dec  1 12:12:41 2013 .1.3.6.1.4.1.3607.6.10.30.0.430 Critical "cisco"
CISCO-15454 - CISCO -15454 Loss Of Signal in FAC-15-1
(criticalServiceAffecting),ifIndex=61442

Sun Dec  1 12:12:41 2013 .1.3.6.1.4.1.3607.6.10.30.0.430 Critical "cisco"
CISCO-15454 - CISCO -15454 Loss Of Signal in FAC-15-1
(criticalServiceAffecting),ifIndex=61442

Writing event 'Sun Dec  1 12:12:41 2013 .1.3.6.1.4.1.3607.6.10.30.0.430
Critical "cisco" CISCO-15454_-_CISCO_-15454_lossOfSignal' to file -=p1=Sun
Dec  1 12:12:41 2013 .1.3.6.1.4.1.3607.6.10.30.0.430 Critical "cisco"
CISCO-15454_p2=-_p3=CISCO_p4=-15454_patter1



But these input are the same,why can match the rule, is anything wrong with
my rule ?



Can anyone give me some advice on what to do please?

------------------------------------------------------------------------------

CenturyLink Cloud: The Leader in Enterprise Cloud Services.

Learn Why More Businesses Are Choosing CenturyLink Cloud For

Critical Workloads, Development Environments & Everything In Between.

Get a Quote or Start a Free Trial Today. 

http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________

Simple-evcorr-users mailing list

[email protected]

https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to