Syslog 정책 구성 레퍼런스
Syslog 정책 구성 레퍼런스 (Syslog Policy Configuration Reference)
이 문서는 Kong이 로그 메시지를 Syslog로 내보낼 때 사용하는 Syslog 정책의 구성 옵션을 정리한 레퍼런스예요 facility나 log_level 같은 각 필드에 어떤 값을 넣을 수 있는지, 기본값은 무엇인지 스키마 형태로 한눈에 확인할 수 있어요 성공한 요청과 클라이언트 오류, 서버 오류마다 심각도를 다르게 지정하는 방법이나 Lua 코드로 커스텀 필드를 추가하는 custom_fields_by_lua 옵션도 함께 소개해요
출처: 문서
본문
{
"properties": {
"config": {
"type": "object",
"properties": {
"custom_fields_by_lua": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Lua code as a key-value map"
},
"facility": {
"type": "string",
"enum": [
"auth",
"authpriv",
"cron",
"daemon",
"ftp",
"kern",
"local0",
"local1",
"local2",
"local3",
"local4",
"local5",
"local6",
"local7",
"lpr",
"mail",
"news",
"syslog",
"user",
"uucp"
],
"description": "The facility is used by the operating system to decide how to handle each log message.",
"default": "user"
},
"log_level": {
"type": "string",
"enum": [
"alert",
"crit",
"debug",
"emerg",
"err",
"info",
"notice",
"warning"
],
"default": "info"
},
"successful_severity": {
"type": "string",
"enum": [
"alert",
"crit",
"debug",
"emerg",
"err",
"info",
"notice",
"warning"
],
"default": "info"
},
"client_errors_severity": {
"type": "string",
"enum": [
"alert",
"crit",
"debug",
"emerg",
"err",
"info",
"notice",
"warning"
],
"default": "info"
},
"server_errors_severity": {
"type": "string",
"enum": [
"alert",
"crit",
"debug",
"emerg",
"err",
"info",
"notice",
"warning"
],
"default": "info"
}
}
}
}
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.