HTTP Log 플러그인 설정 레퍼런스
HTTP Log 플러그인 설정 레퍼런스 (HTTP Log Plugin Configuration Reference)
이 문서는 Kong Gateway의 HTTP Log 플러그인에서 설정할 수 있는 모든 필드를 스키마 형태로 정리한 설정 레퍼런스예요. http_endpoint, method, content_type, headers 같은 기본 옵션부터 큐 동작, flush_timeout, keepalive, mTLS 클라이언트 인증서 같은 세부 항목까지 각 필드의 설명과 기본값을 한눈에 확인할 수 있어요. HTTP Log 플러그인으로 로그를 HTTP 엔드포인트에 전송하도록 구성하거나 동작을 세밀하게 조정할 때 필요한 값을 찾아보는 용도로 활용하면 좋아요
출처: 문서
본문
{
"properties": {
"config": {
"properties": {
"client_certificate": {
"description": "Certificate to use as the mTLS client certificate when connecting to the configured HTTPS endpoint.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object",
"x-foreign": true
},
"content_type": {
"default": "application/json",
"description": "Indicates the type of data sent. The only available option is `application/json`.",
"enum": [
"application/json",
"application/json; charset=utf-8"
],
"type": "string"
},
"custom_fields_by_lua": {
"additionalProperties": {
"type": "string"
},
"description": "Lua code as a key-value map",
"type": "object"
},
"flush_timeout": {
"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.",
"type": "number"
},
"headers": {
"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.",
"type": "object"
},
"http_endpoint": {
"description": "A string representing a URL, such as https://example.com/path/to/resource?q=search. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
"type": "string",
"x-encrypted": true,
"x-referenceable": true
},
"keepalive": {
"default": 60000,
"description": "An optional value in milliseconds that defines how long an idle connection will live before being closed.",
"type": "number"
},
"method": {
"default": "POST",
"description": "An optional method used to send data to the HTTP server. Supported values are `POST` (default), `PUT`, and `PATCH`.",
"enum": [
"PATCH",
"POST",
"PUT"
],
"type": "string"
},
"queue": {
"properties": {
"breaker_cooldown": {
"default": 60,
"description": "Time in seconds the circuit breaker stays open (fast-shedding entries) before it allows a single batch through to probe whether the destination has recovered.",
"maximum": 1000000,
"minimum": 0,
"type": "number"
},
"concurrency_limit": {
"default": 1,
"description": "The number of of queue delivery timers. -1 indicates unlimited.",
"enum": [
-1,
1
],
"type": "integer"
},
"failure_threshold": {
"default": 0,
"description": "Number of consecutive failed batches after which the queue opens its circuit breaker and drops entries instead of retrying. 0 disables the circuit breaker.",
"maximum": 1000000,
"minimum": 0,
"type": "integer"
},
"initial_retry_delay": {
"default": 0.01,
"description": "Time in seconds before the initial retry is made for a failing batch.",
"maximum": 1000000,
"minimum": 0.001,
"type": "number"
},
"max_batch_size": {
"default": 1,
"description": "Maximum number of entries that can be processed at a time.",
"maximum": 1000000,
"minimum": 1,
"type": "integer"
},
"max_bytes": {
"description": "Maximum number of bytes that can be waiting on a queue, requires string content.",
"type": "integer"
},
"max_coalescing_delay": {
"default": 1,
"description": "Maximum number of (fractional) seconds to elapse after the first entry was queued before the queue starts calling the handler.",
"maximum": 3600,
"minimum": 0,
"type": "number"
},
"max_entries": {
"default": 10000,
"description": "Maximum number of entries that can be waiting on the queue.",
"maximum": 1000000,
"minimum": 1,
"type": "integer"
},
"max_retry_delay": {
"default": 60,
"description": "Maximum time in seconds between retries, caps exponential backoff.",
"maximum": 1000000,
"minimum": 0.001,
"type": "number"
},
"max_retry_time": {
"default": 60,
"description": "Time in seconds before the queue gives up calling a failed handler for a batch.",
"type": "number"
}
},
"type": "object"
},
"queue_size": {
"description": "Maximum number of log entries to be sent on each message to the upstream server.",
"type": "integer"
},
"retry_count": {
"description": "Number of times to retry when sending data to the upstream server.",
"type": "integer"
},
"ssl_verify": {
"default": true,
"description": "When using TLS, this option enables verification of the certificate presented by the server.",
"type": "boolean"
},
"timeout": {
"default": 10000,
"description": "An optional timeout in milliseconds when sending data to the upstream server.",
"type": "number"
}
},
"required": [
"http_endpoint"
],
"type": "object"
},
"consumer": {
"additionalProperties": false,
"description": "If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"expressions": {
"additionalProperties": true,
"type": "object"
},
"protocols": {
"default": [
"grpc",
"grpcs",
"http",
"https"
],
"description": "A set of strings representing protocols.",
"items": {
"description": "A string representing a protocol, such as HTTP or HTTPS.",
"enum": [
"grpc",
"grpcs",
"http",
"https",
"tcp",
"tls",
"tls_passthrough",
"udp",
"ws",
"wss"
],
"type": "string"
},
"type": "array"
},
"route": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"service": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
}
},
"required": [
"config"
]
}
관련 리소스
더 알아보기 (Learn more)
- Kong에서 제공하는 로깅 계열 플러그인들을 한곳에서 비교하고 살펴볼 수 있어요 — Logging plugins
- Kong Gateway 자체에서 수집되는 로그를 확인하고 활용하는 방법을 설명해요 — Kong Gateway logs
- Konnect 환경의 게이트웨이 로그를 확인하는 방법을 안내해요 — Konnect logs
- http_endpoint처럼 참조 가능한 필드를 볼트에 저장된 시크릿으로 연결하는 방법을 다뤄요 — referenceable
- 암호화되는 필드의 동작 방식과 키링 설정을 설명해요 — encrypted