Log processor to parse logs and save into database