Fellow Spectrum admins,
I am trying to isolate a part of an event text (an IP address) and assign that to a new variable, but am getting stuck in the Regex part. Could someone please have a look and help me finding out what is wrong?
Event text (variable 0): %ASA-2-113022: AAA Marking TACACS+ server 12.23.23.12 in aaa-server group TACACS as FAILED.
My EventProcedure:
0xfff00006 E 0 P " CreateEventWithAttributes({ C CURRENT_MODEL }, { H 0xfff00005 }, SetEventAttribute( GetEventAttributeList(),{ U 101 }, GetRegexp( GetEventAttribute( { U 0 } ), {S \"(\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b)\" }, { U 1 } ) ) )"
The IP (12.23.23.12) should've been assigned to the new variable 101, but I keep getting the error:
5/9/19 11:02:31 AM[Current Event: 0xfff00006] [Current Model: 0xaaa00000] Error: Error evaluating attribute value expression
Thanks and regards,
Zacchi