Skip to Content
HTTP 완벽 가이드
book

HTTP 완벽 가이드

by David Gourlry, Brian Totty, Lee Eung Jun, Sang -Il Jeong, Anshu Agarwal, Seilu Reddy, Marjorie Sayre
May 2022
Beginner to intermediate
756 pages
21h 30m
Korean
Insight
Content preview from HTTP 완벽 가이드
563
21
장 로깅과 사용 추적
The Definitive Guide
21
장
HTTP: The Definitive Guide
로깅과 사용 추적
거의 모든 서버와 프락시는 처리했던 HTTP 트랜잭션을 요약해서 기록해 놓는다.
그 이유는 여러 가지다. 사용 추적, 보안, 청구, 에러 탐지 등등. 이 장에서는 로깅을
간단히 알아보고, 보통 어떤 HTTP 트랜잭션 정보를 기록하는지, 로그 포맷에는 보
통 어떤 것들이 있는지 알아본다.
21.1
로그란 무엇인가?
대개 로깅을 하는 이유는 두 가지다. 서버나 프락시의 문제를 찾거나, 웹 사이트 접
근 통계를 내려고 로깅을 한다. 통계는 마케팅, 청구, 장비 조달 계획(예를 들어, 서
버나 대역폭을 늘릴 필요가 있는지 결정하려고)을 세우는 데 유용하다.
HTTP 트랜잭션의 모든 헤더를 로깅할 수는 있지만, 하루에 트랜잭션을 수백만
개나 처리하는 서버나 프락시에서 모든 데이터를 그대로 로깅하면 감당하기 힘들
어진다. 별 연관성이 없고 다시 볼 일도 없는 데이터만 로깅하는 것이다.
보통은 트랜잭션의 기본적인 항목들만 로깅한다. 일반적으로 로깅하는 필드는
다음과 같은 것들이다.
· HTTP 메서드
· 클라이언트와 서버의 HTTP 버전
· 요청받은 리소스의 URL
· 응답의 HTTP 상태 코드
· 요청과 응답 메시지의 크기(모든 엔터티 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

몽고DB 완벽 가이드(3판): 실전 예제로 배우는 NoSQL 데이터베이스 기초부터 활용까지

몽고DB 완벽 가이드(3판): 실전 예제로 배우는 NoSQL 데이터베이스 기초부터 활용까지

김인범, 크리스티나 초도로우, 섀넌 브래드쇼, 오언 브라질

Publisher Resources

ISBN: 9788966261208