RE_LOG_v2_6_syslog = re.compile('kernel:\s+(\[[\d\.\s]+\]\s+)?(audit:\s+)?type=\d+\s+audit\([\d\.\:]+\):\s+apparmor=') should work for both formats - I'll send the patch to the mailinglist for review.
RE_LOG_v2_6_syslog = re.compile( 'kernel: \s+(\[[ \d\.\s] +\]\s+) ?(audit: \s+)?type= \d+\s+audit\ ([\d\.\ :]+\):\ s+apparmor= ')
should work for both formats - I'll send the patch to the mailinglist for review.