I'm trying to extract two fields from the below data
02-08 07:33:41.211 E/Rules_LightBaseAction( 2660): com.icontrol.device.DeviceException: Failed to turn light off. 02-08 07:30:19.611 E/Rules_LightBaseAction( 2660): Caused by: com.icontrol.zigbee.service.ZigbeeServiceException: executeCommand returned failure.
rulename=LightBaseAction and result=Failed to turn light off OR executeCommand returned failure
my attempt at the regex works for the rulename but not so much for the result.... What am I missing on the below regex?
try something like this,
base search | rex "E/Rules_(?<rulename>\w+).*(DeviceException|ZigbeeServiceException):\s+(?<result>.*)$"
Hope this will helps you.