I want to reduce the size of my Apache access log and needs to exclude static files from logging like js|css|xml|png|gif & more.
I am parsing access log to track user activity & website data.
I have tried DonNotLog apache directive but didn't work, may be some configuration issue with my code:(
My Apache configurations were --
SetEnvIf Request_URI "(jpg|css)" DontLog
LogFormat "%v:%p %h %l %u \"%{%s}t\" %D \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %{username}n %{sessionID}n" vhost_combined DontLog