$ yum install cargo; cargo install sd
egrep '(SELECT|UPDATE)' production.log | awk -F']' '{ print $3 }' | awk -F"ms)" '{ print $2 }' | sd "'[a-z0-9/ \.\-:]+'" '?' | sd '= [0-9]+' '= ?' | sd '[0-9]+ ?(, ?[0-9]+)+' '?' | sd '(, ?\?+)' '' | sd "'%.+%'" '?' | sd 'LIMIT [0-9]+' 'LIMIT ?' | sd 'OFFSET [0-9]+' 'OFFSET ?' | sort | uniq