달력

3

« 2024/3 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
2014. 8. 7. 10:33

톰켓(Tomcat) 로그 포맷 I.lib()/I.lib(Tomcat)2014. 8. 7. 10:33

.. .. ..

.

톰켓 로그 포멧은 아래와 같다.

 

[한글]

%a - 원격 IP 주소
%A - 로컬 IP 주소
%b - Bytes sent,excluding HTTP headers, or '-' if zero
%B - Bytes sent, excluding HTTP headers
%h - 원격 호스트 이름 (호스트가 잘못된 경우 IP 주소)
%H - 요청 프로토콜
%l - 인증시 원격 논리적 유저명.(언제나 '-'를 리턴함)
%m - 요청 메서드 (GET, POST, etc.)
%p - 요청시 접근한 Local port
%q - 쿼리 스트링(요청 파라미터?).
%r - 요청의 첫번째 라인 (메서드와 요청 URI)
%s - 응답 HTTP 상태 (200, 404 등)
%S - 사용자 세션 id
%t - 공통 로그 포멧에 맞는 날짜와 시간값
%u - 인증되었을 경우 원격 사용자.(아닐시에는 '-')
%U - 요청된 URL 경로
%v - 로컬 서버 이름
%D - 요청을 처리한 시간 (밀리세컨)
%T - 요청을 처리한 시간 (초)
%I - 현재 요청한 쓰레드 이름(차후 스텍 트레이스에 사용가능)

[영어]

%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)

.
:
Posted by .07274.