I have the following syslog
Jan 30 14:34:05 10.234.150.21 Jan 30 13:34:05 DEN-COLO-VBN-CTRL-01 stm[10699]: <305007> AP Smith, John replacement bootstrapped
I am trying to extract "John Smith" as the username. The closest I have gotten so far:
(?:[^-\n]*-){8}\d+\s+\d+.\d+.\d+.\d+>\s+\w+\s+(?P [^,]+),(?P \s+\w+)
which extracts "John" as the First Name and "Smith" as the last name. Can I concatenate the two somehow? Also having the username as "Smith, John" would work as well.
Any thoughts?
... View more