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

Loggly 플러그인 설정 레퍼런스

원문 보기 위키 갱신

Loggly 플러그인 설정 레퍼런스 (Loggly Plugin Configuration Reference)

이 문서는 Kong Gateway에서 로그를 Loggly로 전송하는 Loggly 플러그인의 설정 파라미터를 하나씩 정리한 레퍼런스예요. Loggly 서버의 호스트와 포트, 필수 값인 key부터 로그 레벨과 심각도(severity), 태그, 타임아웃 같은 옵션의 기본값과 역할을 차근차근 살펴봐요. 특히 key 필드는 볼트에 저장된 시크릿을 참조하거나 암호화해서 사용할 수 있다는 점도 함께 기억해요

출처: 문서

본문

{
  "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"
        },
        "host": {
          "default": "logs-01.loggly.com",
          "description": "A string representing a host name, such as example.com.",
          "type": "string"
        },
        "key": {
          "description": "\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
        },
        "log_level": {
          "default": "info",
          "enum": [
            "alert",
            "crit",
            "debug",
            "emerg",
            "err",
            "info",
            "notice",
            "warning"
          ],
          "type": "string"
        },
        "port": {
          "default": 514,
          "description": "An integer representing a port number between 0 and 65535, inclusive.",
          "maximum": 65535,
          "minimum": 0,
          "type": "integer"
        },
        "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"
        },
        "tags": {
          "default": [
            "kong"
          ],
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "timeout": {
          "default": 10000,
          "type": "number"
        }
      },
      "required": [
        "key"
      ],
      "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)

  • key 필드처럼 볼트에 저장된 시크릿을 참조하는 방법을 설명해요 — referenceable
  • key 값을 암호화해서 저장하는 키링 기능을 다뤄요 — encrypted
  • Loggly처럼 로그를 외부 서비스로 보내는 Datadog 플러그인 설정 레퍼런스예요 — Datadog