Windows/Windows 2008 , 2012

Apache Tomcat Logging 경로와 Logging 항목 변경

Pydole 2019. 4. 19. 20:56

OS : Windows 2012 R2

 

- 로그파일 용량관리를 별도의 디렉토리로 분리와 일 단위 로그파일 생성

- 분석 항목 추가

 

 

< 변경전 - 기본세팅 >

 

 

< 변경후 - 기본세팅 >

 

 

 

< 변경후 - 일 단위 로그파일 관리 >

 

 

 

 

 

< 로그 항목 패턴 >

 

 

%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 enableLookups for the connector is false)

 

%H   Request protocol

 

%I    Remote logical username from identd (always returns '-')

 

%m  Request method (GET, POST, etc.)

 

%p   Local port on which this request was received. See also %{xxx}p below.

 

%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. Note: In httpd %D is microseconds.
        Behaviour will be aligned to httpd in Tomcat 10 onwards

 

%T   "Time taken to process the request, in seconds. Note: This value has millisecond resolution whereas

        in httpd it has second resolution. 
        Behaviour will be align to httpd in Tomcat 10 onwards

 

%F    Time taken to commit the response, in millis

 

%I     Current request thread name (can compare later with stacktraces)

 

%X    "Connection status when response is completed:
     X = Connection aborted before the response completed.
     + = Connection may be kept alive after the response is sent
     - = Connection will be closed after the response is sent