Find the word definition

Wiktionary
flog the log

vb. (context idiomatic vulgar of a male English) To masturbate.