^(\w{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ apcupsd\[[[:digit:]]+\]: UPS Self Test (switch to battery.|completed: Battery OK)$
