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

Solace Log 플러그인 구성 레퍼런스

원문 보기 위키 갱신

Solace Log 플러그인 구성 레퍼런스 (Solace Log Plugin Configuration Reference)

이 문서는 Kong Gateway의 Solace Log 플러그인에서 설정할 수 있는 모든 파라미터를 스키마 형태로 정리한 구성 레퍼런스예요. 로그 메시지의 전송 모드나 목적지, 우선순위, 승인 타임아웃 같은 옵션들이 각각 어떤 역할을 하는지, 기본값과 허용 범위는 무엇인지 한눈에 확인할 수 있어요. Solace 브로커로 로그 메시지를 내보내는 플러그인을 처음 세팅하거나 세부 동작을 튜닝할 때 옆에 두고 참고하면 좋아요

출처: 문서

본문

{
  "properties": {
    "config": {
      "properties": {
        "message": {
          "description": "The log message related configuration.",
          "properties": {
            "ack_timeout": {
              "default": 2000,
              "description": "When using a non-DIRECT guaranteed delivery mode, this property sets the log message acknowledgement timeout (waiting time).",
              "maximum": 100000,
              "minimum": 1,
              "type": "integer"
            },
            "custom_fields_by_lua": {
              "additionalProperties": {
                "type": "string"
              },
              "description": "A key-value map that dynamically modifies log fields using Lua code.",
              "type": "object"
            },
            "delivery_mode": {
              "default": "DIRECT",
              "description": "Sets the log message delivery mode.",
              "enum": [
                "DIRECT",
                "PERSISTENT"
              ],
              "type": "string"
            },
            "destinations": {
              "description": "The log message destinations.",
              "items": {
                "properties": {
                  "name": {
                    "description": "The name of the destination. You can use `$(uri_captures['<capture-identifier>'])` in this field to capture the name from a regex request URI (replace `<capture-identifier>` with a real value; for example `$(uri_captures['queue'])` when the matched route has a path `~/(?<queue>[a-z]+)`).",
                    "type": "string"
                  },
                  "type": {
                    "default": "QUEUE",
                    "description": "The type of the destination.",
                    "enum": [
                      "QUEUE",
                      "TOPIC"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              },
              "minLength": 1,
              "type": "array"
            },
            "dmq_eligible": {
              "default": false,
              "description": "Sets the dead message queue (DMQ) eligible property on the log message.",
              "type": "boolean"
            },
            "priority": {
              "default": 4,
              "description": "Sets the log message priority.",
              "maximum": 255,
              "minimum": 0,
              "type": "integer"
            },
            "sender_id": {
              "description": "Allows the application to set the sender identifier.",
              "type": "string"
            },
            "tracing": {
              "default": false,
              "description": "Enable or disable the tracing propagation. This is primarily used for distributed tracing and message correlation, especially in debugging or tracking message flows across multiple systems.",
              "type": "boolean"
            },
            "tracing_sampled": {
              "default": false,
              "description": "Forcibly turn on the tracing on all the messages for distributed tracing (tracing needs to be enabled as well).",
              "type": "boolean"
            },
            "ttl": {
              "default": 0,
              "description": "Sets the time to live (TTL) in milliseconds for the log message. Setting the time to live to zero disables the TTL for the log message.",
              "type": "integer"
            }
          },
          "required": [
            "destinations"
          ],
          "type": "object"
        },
        "session": {
          "description": "Session related configuration.",
          "properties": {
            "authentication": {
              "description": "Session authentication related configuration.",
              "properties": {
                "access_token": {
                  "description": "The OAuth2 access token used with `OAUTH2` authentication scheme when connecting to an event broker. \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
                },
                "access_token_header": {
                  "description": "Specifies the header that contains access token for the `OAUTH2` authentication scheme when connecting to an event broker. This header takes precedence over the `access_token` field.",
                  "type": "string"
                },
                "basic_auth_header": {
                  "description": "Specifies the header that contains Basic Authentication credentials for the `BASIC` authentication scheme when connecting to an event broker. This header takes precedence over the `username` and `password` fields.",
                  "type": "string"
                },
                "client_credentials": {
                  "description": "Client credentials used to automatically obtain and renew OAuth2 access tokens from an IdP for the `CLIENT_CREDENTIALS` authentication scheme. When set, Kong fetches tokens from `token_endpoint` using `client_id` and `client_secret`, caches them until expiry, and retries with a fresh token whenever Solace returns an unauthenticated response.",
                  "properties": {
                    "client_id": {
                      "description": "The OAuth2 client ID used with `CLIENT_CREDENTIALS` authentication scheme when connecting to an event broker. \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
                    },
                    "client_secret": {
                      "description": "The OAuth2 client secret used with `CLIENT_CREDENTIALS` authentication scheme when connecting to an event broker. \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
                    },
                    "eagerly_expire": {
                      "default": 5,
                      "description": "Number of seconds before actual expiry when cached access tokens should be considered expired and proactively renewed. This helps prevent edge cases where tokens are rejected by Solace just as they expire, but setting this too high may lead to unnecessary token refreshes.",
                      "type": "integer"
                    },
                    "scopes": {
                      "description": "The OAuth2 scopes to request when retrieving access tokens for the `CLIENT_CREDENTIALS` authentication scheme.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "ssl_verify": {
                      "default": true,
                      "description": "Controls TLS certificate verification for HTTPS token endpoint requests.",
                      "type": "boolean"
                    },
                    "token_endpoint": {
                      "description": "The OAuth2 token endpoint URL used to retrieve access tokens for the `CLIENT_CREDENTIALS` authentication scheme when connecting to an event broker.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "client_id",
                    "client_secret",
                    "token_endpoint"
                  ],
                  "type": "object"
                },
                "id_token": {
                  "description": "The OpenID Connect ID token used with `OAUTH2` authentication scheme when connecting to an event broker. \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
                },
                "id_token_header": {
                  "description": "Specifies the header that contains id token for the `OAUTH2` authentication scheme when connecting to an event broker. This header takes precedence over the `id_token` field.",
                  "type": "string"
                },
                "password": {
                  "description": "The password used with `BASIC` authentication scheme when connecting to an event broker. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
                  "maxLength": 128,
                  "type": "string",
                  "x-encrypted": true,
                  "x-referenceable": true
                },
                "scheme": {
                  "default": "BASIC",
                  "description": "The client authentication scheme used when connection to an event broker.",
                  "enum": [
                    "BASIC",
                    "CLIENT_CREDENTIALS",
                    "NONE",
                    "OAUTH2"
                  ],
                  "type": "string"
                },
                "username": {
                  "description": "The username used with `BASIC` authentication scheme when connecting to an event broker. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
                  "maxLength": 189,
                  "type": "string",
                  "x-encrypted": true,
                  "x-referenceable": true
                }
              },
              "type": "object"
            },
            "calculate_message_expiry": {
              "default": true,
              "description": "If this property is true and time-to-live has a positive value in a message, the expiration time is calculated when the message is sent or received",
              "type": "boolean"
            },
            "connect_timeout": {
              "default": 3000,
              "description": "The timeout period (in milliseconds) for a connect operation to a given host (per host).",
              "maximum": 100000,
              "minimum": 100,
              "type": "integer"
            },
            "generate_rcv_timestamps": {
              "default": true,
              "description": "When enabled, a receive timestamp is recorded for each message.",
              "type": "boolean"
            },
            "generate_send_timestamps": {
              "default": true,
              "description": "When enabled, a send timestamp is automatically included (if not already present) in the Solace-defined fields for each message sent.",
              "type": "boolean"
            },
            "generate_sender_id": {
              "default": true,
              "description": "When enabled, a sender id is automatically included (if not already present) in the Solace-defined fields for each message sent.",
              "type": "boolean"
            },
            "generate_sequence_number": {
              "default": true,
              "description": "When enabled, a sequence number is automatically included (if not already present) in the Solace-defined fields for each message sent.",
              "type": "boolean"
            },
            "host": {
              "description": "The IPv4 or IPv6 address or host name to connect to (see: https://docs.solace.com/API-Developer-Online-Ref-Documentation/c/index.html#host-entry). \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
              "type": "string",
              "x-referenceable": true
            },
            "properties": {
              "additionalProperties": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-lua-required": true,
                "x-referenceable": true
              },
              "description": "Additional Solace session properties (each setting needs to have `SESSION_` prefix). \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
              "type": "object"
            },
            "ssl_validate_certificate": {
              "default": true,
              "description": "Indicates whether the API should validate server certificates with the trusted certificates.",
              "type": "boolean"
            },
            "vpn_name": {
              "description": "The name of the Message VPN to attempt to join when connecting to an event broker.",
              "maxLength": 32,
              "type": "string"
            }
          },
          "required": [
            "host"
          ],
          "type": "object"
        }
      },
      "required": [
        "message",
        "session"
      ],
      "type": "object"
    },
    "expressions": {
      "additionalProperties": true,
      "type": "object"
    },
    "protocols": {
      "default": [
        "grpc",
        "grpcs",
        "http",
        "https",
        "ws",
        "wss"
      ],
      "description": "A list of the request protocols that will trigger this plugin. The default value, as well as the possible values allowed on this field, may change depending on the plugin type. For example, plugins that only work in stream mode will only support tcp and tls.",
      "items": {
        "enum": [
          "grpc",
          "grpcs",
          "http",
          "https",
          "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)

  • 같은 Solace 생태계의 업스트림 연동 플러그인 설정이 궁금하면 참고해요 — Solace Upstream plugin
  • Solace 브로커에서 메시지를 소비하는 쪽 플러그인도 함께 보면 이해가 쉬워요 — Solace Consume plugin
  • 이 플러그인이 속한 이벤트 기반 게이트웨이의 전체 그림을 확인할 수 있어요 — Event Gateway
  • 설정 값에 볼트에 저장된 시크릿 참조를 사용하는 방법을 설명해요 — referenceable
  • 암호화되는 필드와 키링 구성을 다루는 문서예요 — encrypted