본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Syslog 플러그인 구성 참조

원문 보기 위키 갱신

Syslog 플러그인 구성 참조 (Syslog Plugin Configuration Reference)

이 문서는 Kong의 Syslog 플러그인에서 설정할 수 있는 모든 파라미터를 스키마 형태로 정리해 보여주는 구성 참조 문서예요. log_level이나 severity, facility 같은 로깅 관련 옵션들의 기본값과 허용 가능한 값을 한눈에 확인할 수 있어요. 또한 Consumer, 서비스, 라우트 단위로 플러그인 적용 범위를 제한하는 방법과 지원 프로토콜 설정도 함께 다루고 있어요. Syslog 플러그인을 처음 설정하거나 세부 동작을 튜닝할 때 참고 자료로 활용하면 좋아요

출처: 문서

본문

{
  "properties": {
    "config": {
      "properties": {
        "client_errors_severity": {
          "default": "info",
          "enum": [
            "alert",
            "crit",
            "debug",
            "emerg",
            "err",
            "info",
            "notice",
            "warning"
          ],
          "type": "string"
        },
        "custom_fields_by_lua": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Lua code as a key-value map",
          "type": "object"
        },
        "facility": {
          "default": "user",
          "description": "The facility is used by the operating system to decide how to handle each log message.",
          "enum": [
            "auth",
            "authpriv",
            "cron",
            "daemon",
            "ftp",
            "kern",
            "local0",
            "local1",
            "local2",
            "local3",
            "local4",
            "local5",
            "local6",
            "local7",
            "lpr",
            "mail",
            "news",
            "syslog",
            "user",
            "uucp"
          ],
          "type": "string"
        },
        "log_level": {
          "default": "info",
          "enum": [
            "alert",
            "crit",
            "debug",
            "emerg",
            "err",
            "info",
            "notice",
            "warning"
          ],
          "type": "string"
        },
        "server_errors_severity": {
          "default": "info",
          "enum": [
            "alert",
            "crit",
            "debug",
            "emerg",
            "err",
            "info",
            "notice",
            "warning"
          ],
          "type": "string"
        },
        "successful_severity": {
          "default": "info",
          "enum": [
            "alert",
            "crit",
            "debug",
            "emerg",
            "err",
            "info",
            "notice",
            "warning"
          ],
          "type": "string"
        }
      },
      "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"
    }
  }
}

더 알아보기 (Learn more)

이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.