このページは、まだ日本語ではご利用いただけません。翻訳中です。
古いプラグインバージョンのドキュメントを閲覧しています。
構成
このプラグインはDBレスモードに対応しています。
互換性のあるプロトコル
Kafka Logプラグインは以下のプロトコルに対応しています:
 grpc, grpcs, http, https, ws, wss
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
- 
    name or pluginstring requiredプラグイン名。この場合は kafka-log。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドはnameです。
- Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドはpluginです。
 
- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
- 
      instance_namestringプラグインのインスタンスを識別するための任意のカスタム名 (例: kafka-log_my-service。インスタンス名はKong ManagerとKonnectに表示されるので、 例えば複数のサービスで同じプラグインを複数のコンテキストで実行する場合に便利です。また、Kong Admin API経由で特定のプラグインインスタンスに アクセスするためにも使用できます。 インスタンス名は、次のコンテキスト内で一意である必要があります。 - Kong Gateway Enterpriseのワークスペース内
- Konnectのコントロールプレーン(CP)またはコントロールプレーン(CP)グループ内
- Kong Gateway (OSS)の全世界
 
- 
      service.name or service.idstringプラグインが対象とするサービス名または ID。最上位の /pluginsエンドポイント. からプラグインをサービスに追加する場合は、これらのパラメータのいずれかを設定してください/services/{serviceName|Id}/pluginsを使用する場合は必要ありません。
- 
      route.name or route.idstringプラグインがターゲットとするルート名または ID。最上位の /pluginsエンドポイント. を通るルートにプラグインを追加する場合は、これらのパラメータのいずれかを設定してください/routes/{routeName|Id}/pluginsを使用する場合は必要ありません。
- 
      consumer.name or consumer.idstringプラグインがターゲットとするコンシューマーの名前または ID。 最上位の /pluginsエンドポイント. からコンシューマーにプラグインを追加する場合は、これらのパラメーターのいずれかを設定してください/consumers/{consumerName|Id}/pluginsを使用する場合は必要ありません。
- 
    enabledboolean default:trueこのプラグインが適用されるかどうか。 
- 
  configrecord required- 
  bootstrap_serversset of typerecordSet of bootstrap brokers in a {host: host, port: port}list format.- 
  hoststring requiredA string representing a host name, such as example.com. 
 - 
  portinteger required between:065535An integer representing a port number between 0 and 65535, inclusive. 
 
- 
  
 - 
  topicstring requiredThe Kafka topic to publish to. 
 - 
  timeoutinteger default:10000Socket timeout in milliseconds. 
 - 
  keepaliveinteger default:60000
 - 
  keepalive_enabledboolean default:false
 - 
  authenticationrecord required- 
  strategystring Must be one of:saslThe authentication strategy for the plugin, the only option for the value is sasl.
 - 
  mechanismstring Must be one of:PLAIN,SCRAM-SHA-256,SCRAM-SHA-512The SASL authentication mechanism. Supported options: PLAINorSCRAM-SHA-256.
 - 
  tokenauthbooleanEnable this to indicate DelegationTokenauthentication
 - 
  userstring referenceable encryptedUsername for SASL authentication. 
 - 
  passwordstring referenceable encryptedPassword for SASL authentication. 
 
- 
  
 - 
  securityrecord required- 
  certificate_idstringUUID of certificate entity for mTLS authentication. 
 - 
  sslbooleanEnables TLS. 
 
- 
  
 - 
  cluster_namestringAn identifier for the Kafka cluster. By default, this field generates a random string. You can also set your own custom cluster identifier. If more than one Kafka plugin is configured without a cluster_name(that is, if the default autogenerated value is removed), these plugins will use the same producer, and by extension, the same cluster. Logs will be sent to the leader of the cluster.
 - 
  producer_request_acksinteger default:1Must be one of:-1,0,1The number of acknowledgments the producer requires the leader to have received before considering a request complete. Allowed values: 0 for no acknowledgments; 1 for only the leader; and -1 for the full ISR (In-Sync Replica set). 
 - 
  producer_request_timeoutinteger default:2000Time to wait for a Produce response in milliseconds 
 - 
  producer_request_limits_messages_per_requestinteger default:200Maximum number of messages to include into a single Produce request. 
 - 
  producer_request_limits_bytes_per_requestinteger default:1048576Maximum size of a Produce request in bytes. 
 - 
  producer_request_retries_max_attemptsinteger default:10Maximum number of retry attempts per single Produce request. 
 - 
  producer_request_retries_backoff_timeoutinteger default:100Backoff interval between retry attempts in milliseconds. 
 - 
  producer_asyncboolean default:trueFlag to enable asynchronous mode. 
 - 
  producer_async_flush_timeoutinteger default:1000Maximum time interval in milliseconds between buffer flushes in asynchronous mode. 
 - 
  producer_async_buffering_limits_messages_in_memoryinteger default:50000Maximum number of messages that can be buffered in memory in asynchronous mode. 
 - 
  custom_fields_by_luamapLua code as a key-value map 
 
- 
  
 
                      