begin to see daylight
Realize that a task is finally nearing completion, that success or the right solution is near at hand. For example, I've been working on this experiment for two years and I'm finally beginning to see daylight. The noun daylight has been a metaphor for knowledge and solution since the late 1600s. Also see light at the end of the tunnel; see the light.