Finish the script for cube log parsing