have a go at vs rap over the knuckles

have a go at

rap over the knuckles

How often have the words have a go at and rap over the knuckles occurred in a corpus of books? (source: Google Ngram Viewer )