New log parsing script