extract histogram from log.