add new column for loggin matched pattern