Answer
Your force against the log causes it to accelerate in the opposite direction.
Work Step by Step
As you walk on the log, say, toward the right, your foot pushes on the log toward the left, or “backward.” By Newton’s third law, the log exerts an equal and opposite force on you, which pushes you toward the right. The floating log, feeling a net force to the left, will accelerate toward the left.