Is it possibile to exclude specific requests from access log?

#1
On Apache I use something similar to this
Code:
SetEnvIf Request_URI ^.*\.(jpe?g|png|gif|js|css|ico) dontlog=yes
CustomLog ${docroot}/access_log combined expr=!reqenv('dontlog')=='yes'
To avoid logging unnecessary data and reduce logsizes, usually static files.
I'm not using apache config, everything is configured on LSWS natively. Is there a similar command for LSWS?
 

abk

Administrator
Staff member
#2
That should work on LSWS env too. If it doesn't please try:

Code:
SetEnvIf Request_URI \.(jpe?g|png|gif|js|css|ico)$ dontlog
CustomLog ${docroot}/access_log combined env=!dontlog
 
Top