◽ Apache Tomcat

[Apache Tomcat - (6) ] "org.apache.catalina.valves.AccessLogValve" [ 사용자 접근 로그 설정 ]

설정을 하면 이러한 로그가 떨어지는데 사용하지 않는다면 쓰레기 용량으로 쌓이기 때문에 주석처리를 하면 된다.


 

이 설정을 주석처리하게 되면 사용자 접근 로그가 톰캣로그에서 안보이게 된다.

 

위치는 각자마다 설치한 톰캣 경로에서 /apache-tomcat-9.0.40/conf/server.xml에 있으니 참고.

 

 


옵션 중 pattern의 종류는

•%a - Remote IP address 
•%A - Local IP address 
•%b - Bytes sent, excluding HTTP headers, or '-' if zero 
•%B - Bytes sent, excluding HTTP headers 
•%h - Remote host name (or IP address if resolveHosts is false) 
•%H - Request protocol 
•%l - Remote logical username from identd (always returns '-') 
•%m - Request method (GET, POST, etc.) 
•%p - Local port on which this request was received 
•%q - Query string (prepended with a '?' if it exists) 
•%r - First line of the request (method and request URI) 
•%s - HTTP status code of the response 
•%S - User session ID 
•%t - Date and time, in Common Log Format 
•%u - Remote user that was authenticated (if any), else '-' 
•%U - Requested URL path 
•%v - Local server name 
•%D - Time taken to process the request, in millis 
•%T - Time taken to process the request, in seconds 
•%I - current request thread name (can compare later with stacktraces)

 

푸터바