Our loadbalancer calls version.jsp every other second to check if the application is still alive. Problem is, our access.log files now get flooded with said version.jsp calls. Is there any sane way to log all version.jsp calls to a seperate logfile?
Yes. You can play with the Access Log Valve and the two attributes it allows for matching a specific request (conditionIf
, conditionUnless
). This means you need two valves, each one will log in its file.