I'd like to update my apache logging so that its destination is based on the user agent string or file type.Specifically, I would like to send my googlebot requests to their own log file, and I would like to not log requests for any of my image files.My configuration is pretty much stock.
Apache logging based on user agent
apache;logging;user agent;apache log files
Try adding something like the following into your VirtualHost config:SetEnvIf User-agent .*Googlebot.* googlebotCustomLog /var/log/apache2/access_googlebot.log combined env=googlebotCustomLog /var/log/apache2/access.log combined env=!googlebot