このページは、まだ日本語ではご利用いただけません。翻訳中です。
古いプラグインバージョンのドキュメントを閲覧しています。
構成
このプラグインはDBレスモードに対応しています。
互換性のあるプロトコル
HTTP Logプラグインは以下のプロトコルに対応しています:
 grpc, grpcs, http, https, tcp, tls, tls_passthrough, udp, ws, wss
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
- 
    name or pluginstring requiredプラグイン名。この場合は http-log。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドはnameです。
- Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドはpluginです。
 
- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
- 
      instance_namestringプラグインのインスタンスを識別するための任意のカスタム名 (例: http-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- 
  http_endpointstring required referenceable encryptedA string representing a URL, such as https://example.com/path/to/resource?q=search. 
 - 
  methodstring default:POSTMust be one of:POST,PUT,PATCHAn optional method used to send data to the HTTP server. Supported values are POST(default),PUT, andPATCH.
 - 
  content_typestring default:application/jsonMust be one of:application/json,application/json; charset=utf-8Indicates the type of data sent. The only available option is application/json.
 - 
  timeoutnumber default:10000An optional timeout in milliseconds when sending data to the upstream server. 
 - 
  keepalivenumber default:60000An optional value in milliseconds that defines how long an idle connection will live before being closed. 
 - 
  retry_countinteger default:10Number of times to retry when sending data to the upstream server. Deprecation notice: This field is planned to be removed in version 4.0. 
 - 
  queue_sizeinteger default:1Maximum number of log entries to be sent on each message to the upstream server. Deprecation notice: This field is planned to be removed in version 4.0. 
 - 
  flush_timeoutnumber default:2Optional time in seconds. If queue_size> 1, this is the max idle time before sending a log with less thanqueue_sizerecords.Deprecation notice: This field is planned to be removed in version 4.0. 
 - 
  headersmapAn optional table of headers included in the HTTP message to the upstream server. Values are indexed by header name, and each header name accepts a single string. 
 - 
  queuerecord required- 
  max_batch_sizeinteger default:1between:11000000Maximum number of entries that can be processed at a time. 
 - 
  max_coalescing_delaynumber default:1between:03600Maximum number of (fractional) seconds to elapse after the first entry was queued before the queue starts calling the handler. 
 - 
  max_entriesinteger default:10000between:11000000Maximum number of entries that can be waiting on the queue. 
 - 
  max_bytesintegerMaximum number of bytes that can be waiting on a queue, requires string content. 
 - 
  max_retry_timenumber default:60Time in seconds before the queue gives up calling a failed handler for a batch. 
 - 
  initial_retry_delaynumber default:0.01between:0.0011000000Time in seconds before the initial retry is made for a failing batch. 
 - 
  max_retry_delaynumber default:60between:0.0011000000Maximum time in seconds between retries, caps exponential backoff. 
 - 
  concurrency_limitinteger default:1Must be one of:-1,1The number of of queue delivery timers. -1 indicates unlimited. 
 
- 
  
 - 
  custom_fields_by_luamapLua code as a key-value map 
 
- 
  
 
                      