HTTP 로그 정책 구성 참조
HTTP 로그 정책 구성 참조 (HTTP Log Policy Configuration Reference)
이 문서는 Kong의 HTTP Log 정책에서 설정할 수 있는 파라미터들을 정리한 구성 참조 자료예요. keepalive 같은 연결 설정부터 큐의 배치 크기와 재시도 간격, Lua로 커스텀 필드를 정의하는 방법, 로그를 전송할 HTTP 엔드포인트 지정까지 각 항목의 타입, 기본값, 허용 범위를 한눈에 확인할 수 있어요. HTTP Log 플러그인을 세밀하게 튜닝하거나 동작 방식을 파악하고 싶을 때 파라미터별 의미를 빠르게 찾아보기 좋은 문서예요
출처: 문서
본문
{
"properties": {
"config": {
"type": "object",
"properties": {
"keepalive": {
"type": "number",
"description": "An optional value in milliseconds that defines how long an idle connection will live before being closed.",
"default": 60000
},
"queue": {
"type": "object",
"properties": {
"max_batch_size": {
"type": "integer",
"maximum": 1000000,
"minimum": 1,
"description": "Maximum number of entries that can be processed at a time.",
"default": 1
},
"max_coalescing_delay": {
"type": "number",
"maximum": 3600,
"minimum": 0,
"description": "Maximum number of (fractional) seconds to elapse after the first entry was queued before the queue starts calling the handler.",
"default": 1
},
"max_entries": {
"type": "integer",
"maximum": 1000000,
"minimum": 1,
"description": "Maximum number of entries that can be waiting on the queue.",
"default": 10000
},
"max_bytes": {
"type": "integer",
"description": "Maximum number of bytes that can be waiting on a queue, requires string content."
},
"max_retry_time": {
"type": "number",
"description": "Time in seconds before the queue gives up calling a failed handler for a batch.",
"default": 60
},
"initial_retry_delay": {
"type": "number",
"maximum": 1000000,
"minimum": 0.001,
"description": "Time in seconds before the initial retry is made for a failing batch.",
"default": 0.01
},
"max_retry_delay": {
"type": "number",
"maximum": 1000000,
"minimum": 0.001,
"description": "Maximum time in seconds between retries, caps exponential backoff.",
"default": 60
},
"concurrency_limit": {
"type": "integer",
"enum": [
-1,
1
],
"description": "The number of of queue delivery timers. -1 indicates unlimited.",
"default": 1
}
}
},
"custom_fields_by_lua": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Lua code as a key-value map"
},
"http_endpoint": {
"type": "string",
"description": "A string representing a URL, such as https://example.com/path/to/resource?q=search.",
"x-referenceable": true,
"x-encrypted": true
},
"method": {
"type": "string",
"enum": [
"PATCH",
"POST",
"PUT"
],
"description": "An optional method used to send data to the HTTP server. Supported values are `POST` (default), `PUT`, and `PATCH`.",
"default": "POST"
},
"content_type": {
"type": "string",
"enum": [
"application/json",
"application/json; charset=utf-8"
],
"description": "Indicates the type of data sent. The only available option is `application/json`.",
"default": "application/json"
},
"timeout": {
"type": "number",
"description": "An optional timeout in milliseconds when sending data to the upstream server.",
"default": 10000
},
"retry_count": {
"type": "integer",
"description": "Number of times to retry when sending data to the upstream server."
},
"queue_size": {
"type": "integer",
"description": "Maximum number of log entries to be sent on each message to the upstream server."
},
"flush_timeout": {
"type": "number",
"description": "Optional time in seconds. If `queue_size` > 1, this is the max idle time before sending a log with less than `queue_size` records."
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "An optional table of headers included in the HTTP message to the upstream server. Values are indexed by header name, and each header name accepts a single string."
},
"ssl_verify": {
"type": "boolean",
"description": "When using TLS, this option enables verification of the certificate presented by the server.",
"default": true
}
},
"required": [
"http_endpoint"
]
}
}
}
관련 리소스
더 알아보기 (Learn more)
- AI Gateway에서 수집되는 로그의 종류와 확인 방법을 살펴보세요 — AI Gateway logs
- 로깅 카테고리에 속한 다른 정책들을 함께 비교해 보세요 — Logging Policies
- Konnect 환경에서 수집되는 게이트웨이 로그를 확인하는 방법을 알아보세요 — Konnect logs