diff --git a/decoders/0099-f5_bigip_decoders.xml b/decoders/0099-f5_bigip_decoders.xml new file mode 100644 index 000000000..27ef82615 --- /dev/null +++ b/decoders/0099-f5_bigip_decoders.xml @@ -0,0 +1,29 @@ + + + + + + \w+ \w+[\d+]: \S+ \.+ + + + + f5_bigip_decoder + (\w+) (\w+)[(\d+)]: (\S+) (\.+) + level,service,pid,message_code,message_text + \ No newline at end of file diff --git a/rules/0690-f5_bigip_rules.xml b/rules/0690-f5_bigip_rules.xml new file mode 100644 index 000000000..bd1c691e7 --- /dev/null +++ b/rules/0690-f5_bigip_rules.xml @@ -0,0 +1,33 @@ + + + + + + f5_bigip_decoder + F5 Networks BigIP GTM events. + + + + 64260 + notice + F5 BigIP GTM: Notice message detected. + + + + 64260 + warning + F5 BigIP GTM: Warning message detected. + + + + 64260 + alert + F5 BigIP GTM: Alert message detected. + + + \ No newline at end of file diff --git a/tools/rules-testing/tests/f5_bigip.ini b/tools/rules-testing/tests/f5_bigip.ini new file mode 100644 index 000000000..1d064293f --- /dev/null +++ b/tools/rules-testing/tests/f5_bigip.ini @@ -0,0 +1,22 @@ +[f5 bigip gtm: Notice message detected] +log 1 pass = May 24 11:15:01 HOSTNAME notice logrotate[3582]: ALERT exited abnormally with [1] + +rule = 64261 +alert = 3 +decoder = f5_bigip_decoder + +[f5 bigip gtm: Warning message detected] +log 1 pass = May 24 11:15:25 HOSTNAME warning tmm1[18463]: 01260013:4: SSL Handshake failed for TCP 192.168.1.15:50932 -> 11.22.33.44:443 + +rule = 64262 +alert = 7 +decoder = f5_bigip_decoder + +[f5 bigip gtm: Alert message detected] +log 1 pass = May 17 11:28:20 HOSTNAME alert gtmd[13220]: 011ae0f2:1: Monitor instance /Common/Monitor_1.1.1.1 192.168.1.1:1526 UP -> DOWN from /Common/F5-LAN-SF (no reply from big3d: timed out) +log 2 pass = May 17 11:28:21 HOSTNAME alert gtmd[13202]: 011a4003:1: SNMP_TRAP: Pool /Common/hostname member pmtdbaf5-SF (ip:port=10.1.1.1:5443) state change green -> red ( Monitor /Common/Monitor_1.1.1.1 from /Common/F5-LAN-SF : no reply from big3d: timed out) +log 3 pass = May 17 11:28:22 HOSTNAME alert gtmd[13202]: 011a6006:1: SNMP_TRAP: VS virtual_server_name (ip:port=192.168.1.2:1526) (Server /Common/virtual_server_name) state change green -> red ( Monitor /Common/Monitor_1.1.1.1 from /Common/F5-LAN-SF : no reply from big3d: timed out) + +rule = 64263 +alert = 7 +decoder = f5_bigip_decoder \ No newline at end of file