i'am trying to remove some request from Apache logs. for example, if the request match "RunJobs&tasks=jobs"
i am trying to use
SetEnvIf Request_URI "(RunJobs&tasks=jobs)" dontlog
CustomLog ${APACHE_LOG_DIR}/access.log vhost_combined env=!dontlog
but request_URI doesn't contain the request it stop at the filename.
I checked the other possibilities, but none could help:
Remote_Host
Remote_Addr
Server_Addr
Request_Method
Request_Protocol
Request_URI
how to prevent log if request matches RunJobs&tasks=jobs ?
thanks
As
SetEnvIf Query_String
doesn't exist, this is a way to achieve it :from http://www.gossamer-threads.com/lists/apache/users/326145