script for processing the output log