Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Latest commit

 

History

History
77 lines (47 loc) · 2.44 KB

Log-Analyzer-Info.md

File metadata and controls

77 lines (47 loc) · 2.44 KB

0.112.171.112.201
: 호출된 인터넷 IP

1.http-nio-80-exec-664
: 쓰레드 NAME

2.-(%l) x

: 출력에서 "빼기기호"는 요청한 정보가 없음을 나타낸다. 이 경우 여기에 나올 정보는 클라이언트 컴퓨터의 identd가 제공할 클라이언트의 RFC 1413 신원이다. 이 정보는 매우 믿을 수 없기때문에, 긴밀히 관리되는 내부 네트웍이 아니라면 절대로 이 정보를 사용하면 안된다. IdentityCheckOn이 아니라면 아파치 웹서버는 이 정보를 알아보려고 시도하지도 않는다.

3.sohnhyeok@giftm.co.kr
: USERID

4.[24/Aug/2018:00:00:01 +0900] : TIME
[10/Oct/2000:13:55:36 -0700] (%t) 서버가 요청처리를 마친 시간. 형식은: [day/month/year:hour:minute:second zone] day = 숫자 2개 month = 숫자 3개 year = 숫자 4개 hour = 숫자 2개 minute = 숫자 2개 second = 숫자 2개 zone = (+' | -') 숫자 4개

로그 형식문자열에 %{format}t를 사용하여 다른 형식으로 시간을 출력할 수 있다. format은 C 표준 라이브러리의 strftime(3)과 같다.

5.GET
: REST method

6./api/ehr/attnd/record
: REST API

7.HTTP/1.1 (X) HTTP VERSION

8.200
STATUS_NUMBER

9.888
패킷 사이즈

10."https://giftm.daouoffice.com/app/home"
: Base_URL

11. "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" : User-Agent

12."-"
:만약 USER-AGNET가 없을 경우에 백업용으로 사용됨.

13.0.093
: taking time

'name', 'userid', 'time', 'rest_method', 'rest_api', 'status_number', 'size','base_url','user_agent', 'backup_user_agent', 'reponse_time'

112.171.112.201 http-nio-80-exec-664 - sohnhyeok@giftm.co.kr [24/Aug/2018:00:00:01 +0900] GET /api/ehr/attnd/record HTTP/1.1 200 888 "https://giftm.daouoffice.com/app/home" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" "-" 0.093

goaccess /Users/len/Desktop/logdata/text.log -o report10.html --log-format='%h %P %l %v %^[%d:%t %^] %m %r %H %s %b "%R" "%u" "%i" %T' --date-format=%d/%b/%Y --time-format=%T

--log-format='%h %P %l %v %^[%d:%t %^] %m %r %H %s %b \"%R\" \"%u\" \"%^\" %T' --date-format=%d/%b/%Y --time-format=%T

--log-format='%h %P %l %v %^[%d:%t %^] %m %r %H %s %b "%R" "%u" "%^" %T' --date-format=%d/%b/%Y --time-format=%T

➜ ~ cd /usr/local/Cellar/goaccess/1.2/etc