We plan to use a tracking pixel to collect some analytics. It would be very helpful to configure a different policy for storing access logs to this pixel (http://ourdomain.com/tracking.png?someParameter=123)
Can Apache be configured to filter and store only the access logs that contain a specific URL pattern on a different location than the main access log? We still want to keep the full access log on the initial partition, with a different retention policy.
You could use mod_setenvif to set an environment variable related to your tracking pixel and then filter the logs using it. something like
If the tracking pixel is requested then the environment variable gets set and the event gets logged to a different file.