Hello,
Here is an applet that pulls out the both the full name of the ephone device, and the related ephone number.
It uses a regular expression to grab information between the first set of : :. Then extracts that information to grab the number after the hyphen.
event manager applet one
event syslog pattern "IPPHONE-6-REGISTER"
action 1 regexp ".*IPPHONE-6-REGISTER:([^:]*):.*" "$_syslog_msg" match id
action 2 puts "fullname is $id"
action 3 regexp ".*-([0-9]+)" "$id" match idnum
action 4 puts "number is $idnum"
In your message above the applet would create:
*Jul 28 13:46:19.793: %HA_EM-6-LOG: one: fullname is ephone-2
*Jul 28 13:46:19.793: %HA_EM-6-LOG: one: number is 2
Thanks