httpd.conf에서 CustomLog파일의 위치, 이름 설정

LogFormat "%h %l %u %t \"%r\" %>s %b" common

[...]

CustomLog logs/access_log common   

 

통합된 LogFormat은 Referer와 User-Agent가 포함 되도록 확장 설정

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"

\"%{User-Agent}i\"" combined

[...]

CustomLog logs/access_log combined

 

HostnameLookups 옵션을 On이나 Off로 설정하여 DNSLookup을 실행한 로그 기록가능

(과부하 걸릴 수 있음)

 

 

HostnameLookup이 꺼진 경우의 로그

66.134.177.170 -- [20/Feb/2004:15;34:13 -0800]

"GET /index.html HTTP/1.1" 200 13952

 

HostnameLookup이 켜진 경우의 로그

h-66-134-177-170.sttnwaho.covad.net - -

[20/Feb/2004:15:37:50 -0800]

"GET /index.html HTTP/1.1" 20013952

 

combines 형식 사용 시

h-66.134-177-170.sttnwaho.covad.net - -

[20/Feb/2004:15:46:03 -0800]

"GET /index.html HTTP/1.1" 200 13952

http://www.craic.com/index.html

"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)

Gecko/204027 Firefox/0.8"

 

○ User_Agent

 

Linux, Firefox Version 0.8

"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)

Gecko/20040207 Firefox/0.8"

 

PowerPC Macintosh Mac OS X, Safari

"Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.5.6

(KHTML, like Gecko) Safari/125.12"

 

Windows 2000, Microsoft Internet Explorer 6.0

"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;

ESB{837E7A43-A894-47CD-8B49-6C273A84BE29}; SV1)"

 

"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;

{A0D0A528-5BFC-4FB3-B56C-EC45BCECC088}; SV1; .NET CLR)"

 

{A0D0A528-5BFC-4FB3-B56C-EC45BCECC088} - 시리얼 번호?(확실치는 않음)

 

MSN, Yahoo, Goolge BOT

- msnbot/1.0 (+http://search,msn,com/msnbot.htm)

- Mozilla/5.0 (compatible; Yahoo! Slurp;

http://help.yahoo.com/help/us/ysearch/slurp)

- Googlebot/2.1 (+http://www.gle.com/bot.html)

 

 

반응형

'Information Security > Forensic' 카테고리의 다른 글

HTTP Header  (0) 2015.07.13
진단???????응????뭐야이게  (0) 2015.04.14

Server Response(서버의 응답)

HTTP/1.1 200 OK

200

300

404

 

Date(타임스탬프)

Date : Thu, 20 Jan 2005 17:08:11 GMT

 

Last_Modified(마지막으로 수정한 타임스탬프)

Last-Modified : Thu, 20 Jan 2005 09:19:26 GMT

 

ETag (브라우저의 웹사이트와 캐시버전과의 ETag 비교시 사용)

ETag: "a4524-d5f6-41ef779e"

- 해시 같은 개념? 같은 내용이면 다시 다운로드 하지 않고 캐시버전을 사용

 

Connection(브라우저가 요청 하는 연결의 종류) and Keep-Alive

Connection: Keep-Alive

Keep-Alive : timeout=15, max 500 (Keep-Alive : 페이지 다운로드 후 세션 유지, 옵션: 시간 정의)

 

Content-Type(Content의 타입)

Content-Type : text/html

-    text/html :MIME

 

Content-Length(Content의 크기) and Accept-Ranges

Content-Length : 54774

Accept-Ranges : bytes

 

 

P3P(Privacy Preferences, a project of the World Wide Web Consortium : 콘텐츠를 다운로드하기 전 개인정보보호 정책을 노출하기 위해 사용)

P3P:policyref="http://www.oreillynet.com/w3c/p3p.xml"

CP="CAO DSP COR [...]"

 

X-Cache

X-Cache: MISS from www.oreilly.com

 

 

Server(서버에 대한 정보)

Server: Apache/1.3.33 (Unix) PHP/4.3.10 mod_perl/1.29

 

Apache, 버전 1.3(Mac OS X), 버전 2.0과 상용버전

Server:Apache/1.3.29 (Darwin) PHP/4.3.1

Server: Apache/2.0.51 (Unix)

Server: Stronghold/2.4.2 Apache/1.3.6 C2NetEU/2412 (Unix)

amarewrite/0.1 mod_fastcgi/2.2.12

 

Miccrosoft Internet Information Server, 버전 5와 6

Server: Microsoft-IIS/5.0

Server: Microsoft-IIS/6.0

 

Sun ONE 웹서버

Server: Sun-ONE-Web-Server/6.1

 

Oracle 애플리케이션서버

Server: Oracle-Application-Server-10g OracleAS-Web-Cache-10g/9.0.4.1.0 H; max-age=300+0;age=73)

 

google custom 웹서버

Server: GWS/2.1

 

 

 

 

 

반응형

'Information Security > Forensic' 카테고리의 다른 글

Apache Log Analysis  (0) 2015.07.13
진단???????응????뭐야이게  (0) 2015.04.14

반응형