SetEnvIfNoCase Request_URI "^/string to exclude/" drop
and then between
CustomLog /var/log/httpd/www.mydomainname.com-access_log combined env=!drop
MAC OS X, Linux, Windows and other IT Tips and Tricks
SetEnvIfNoCase Request_URI "^/string to exclude/" drop
and then between
CustomLog /var/log/httpd/www.mydomainname.com-access_log combined env=!drop