UDP 로그 플러그인 구성 참조
UDP 로그 플러그인 구성 참조 (UDP Log Plugin Configuration Reference)
UDP Log 플러그인은 요청 데이터를 UDP 서버로 보내 로그를 수집하는 플러그인이에요. 이 문서는 플러그인 스키마를 기준으로 host와 port 같은 필수 설정 항목과 timeout, custom_fields_by_lua 같은 선택 옵션을 설명해요. 또한 consumer, route, service, protocols처럼 플러그인이 적용될 대상과 범위를 지정하는 파라미터도 함께 다뤄요.
출처: 문서
본문
{
"properties": {
"config": {
"properties": {
"custom_fields_by_lua": {
"additionalProperties": {
"type": "string"
},
"description": "Lua code as a key-value map",
"type": "object"
},
"host": {
"description": "A string representing a host name, such as example.com.",
"type": "string"
},
"port": {
"description": "An integer representing a port number between 0 and 65535, inclusive.",
"maximum": 65535,
"minimum": 0,
"type": "integer"
},
"timeout": {
"default": 10000,
"description": "An optional timeout in milliseconds when sending data to the upstream server.",
"type": "number"
}
},
"required": [
"host",
"port"
],
"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)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.