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

Solace 로그 정책 설정 레퍼런스

원문 보기 위키 갱신

Solace 로그 정책 설정 레퍼런스 (Solace Log Policy Configuration Reference)

이 문서는 Kong에서 Solace 이벤트 브로커와 세션을 맺고 메시지를 주고받을 때 적용되는 로그 정책의 설정 항목을 JSON 스키마 형태로 정리한 레퍼런스예요. 인증서 검증 여부나 수신·발신 타임스탬프 생성 같은 세션 옵션부터 호스트, VPN 이름, 인증 설정까지 각 속성의 타입과 기본값을 한눈에 확인할 수 있어요. Solace 로그 정책을 설정하거나 튜닝할 때 필요한 옵션을 빠르게 찾아보는 용도로 활용하면 좋아요

출처: 문서

본문

{
  "properties": {
    "config": {
      "type": "object",
      "properties": {
        "session": {
          "type": "object",
          "properties": {
            "ssl_validate_certificate": {
              "type": "boolean",
              "description": "Indicates whether the API should validate server certificates with the trusted certificates.",
              "default": true
            },
            "generate_rcv_timestamps": {
              "type": "boolean",
              "description": "When enabled, a receive timestamp is recorded for each message.",
              "default": true
            },
            "generate_send_timestamps": {
              "type": "boolean",
              "description": "When enabled, a send timestamp is automatically included (if not already present) in the Solace-defined fields for each message sent.",
              "default": true
            },
            "properties": {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "x-lua-required": true,
                "x-referenceable": true
              },
              "description": "Additional Solace session properties (each setting needs to have `SESSION_` prefix)."
            },
            "calculate_message_expiry": {
              "type": "boolean",
              "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",
              "default": true
            },
            "generate_sender_id": {
              "type": "boolean",
              "description": "When enabled, a sender id is automatically included (if not already present) in the Solace-defined fields for each message sent.",
              "default": true
            },
            "generate_sequence_number": {
              "type": "boolean",
              "description": "When enabled, a sequence number is automatically included (if not already present) in the Solace-defined fields for each message sent.",
              "default": true
            },
            "host": {
              "type": "string",
              "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).",
              "x-referenceable": true
            },
            "vpn_name": {
              "type": "string",
              "maxLength": 32,
              "description": "The name of the Message VPN to attempt to join when connecting to an event broker."
            },
            "authentication": {
              "type": "object",
              "properties": {
                "access_token": {
                  "type": "string",
                  "description": "The OAuth2 access token used with `OAUTH2` authentication scheme when connecting to an event broker.",
                  "x-referenceable": true,
                  "x-encrypted": true
                },
                "access_token_header": {
                  "type": "string",
                  "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."
                },
                "id_token": {
                  "type": "string",
                  "description": "The OpenID Connect ID token used with `OAUTH2` authentication scheme when connecting to an event broker.",
                  "x-referenceable": true,
                  "x-encrypted": true
                },
                "id_token_header": {
                  "type": "string",
                  "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."
                },
                "scheme": {
                  "type": "string",
                  "enum": [
                    "BASIC",
                    "NONE",
                    "OAUTH2"
                  ],
                  "description": "The client authentication scheme used when connection to an event broker.",
                  "default": "BASIC"
                },
                "username": {
                  "type": "string",
                  "maxLength": 189,
                  "description": "The username used with `BASIC` authentication scheme when connecting to an event broker.",
                  "x-referenceable": true,
                  "x-encrypted": true
                },
                "password": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "The password used with `BASIC` authentication scheme when connecting to an event broker.",
                  "x-encrypted": true,
                  "x-referenceable": true
                },
                "basic_auth_header": {
                  "type": "string",
                  "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."
                }
              },
              "description": "Session authentication related configuration."
            },
            "connect_timeout": {
              "type": "integer",
              "maximum": 100000,
              "minimum": 100,
              "description": "The timeout period (in milliseconds) for a connect operation to a given host (per host).",
              "default": 3000
            }
          },
          "required": [
            "host"
          ],
          "description": "Session related configuration."
        },
        "message": {
          "type": "object",
          "properties": {
            "priority": {
              "type": "integer",
              "maximum": 255,
              "minimum": 0,
              "description": "Sets the log message priority.",
              "default": 4
            },
            "dmq_eligible": {
              "type": "boolean",
              "description": "Sets the dead message queue (DMQ) eligible property on the log message.",
              "default": false
            },
            "ttl": {
              "type": "integer",
              "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.",
              "default": 0
            },
            "custom_fields_by_lua": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              },
              "description": "A key-value map that dynamically modifies log fields using Lua code."
            },
            "tracing": {
              "type": "boolean",
              "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.",
              "default": false
            },
            "tracing_sampled": {
              "type": "boolean",
              "description": "Forcibly turn on the tracing on all the messages for distributed tracing (tracing needs to be enabled as well).",
              "default": false
            },
            "destinations": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "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": {
                    "type": "string",
                    "enum": [
                      "QUEUE",
                      "TOPIC"
                    ],
                    "description": "The type of the destination.",
                    "default": "QUEUE"
                  }
                },
                "required": [
                  "name"
                ]
              },
              "minLength": 1,
              "description": "The log message destinations."
            },
            "delivery_mode": {
              "type": "string",
              "enum": [
                "DIRECT",
                "PERSISTENT"
              ],
              "description": "Sets the log message delivery mode.",
              "default": "DIRECT"
            },
            "sender_id": {
              "type": "string",
              "description": "Allows the application to set the sender identifier."
            },
            "ack_timeout": {
              "type": "integer",
              "maximum": 100000,
              "minimum": 1,
              "description": "When using a non-DIRECT guaranteed delivery mode, this property sets the log message acknowledgement timeout (waiting time).",
              "default": 2000
            }
          },
          "required": [
            "destinations"
          ],
          "description": "The log message related configuration."
        }
      },
      "required": [
        "message",
        "session"
      ]
    }
  }
}

더 알아보기 (Learn more)

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