See the Apache docs "manual/mod/mod_log_config.html"
Your httpd.conf probably has a line in it like this:
LogFormat "%h %l %u %t \"%r\" %>s %b" common
Define your own logfile format, constructing an equivalent. Something like this:
LogFormat "%h %l %u %t \"%m %U\" %>s %b" customlog
... which delivers a similar report but omits the query string.
Then, later in your httpd.conf file, change
CustomLog logs/access_log common
to
CustomLog logs/access_log customlog