Http plugin for Fluentd


Sends logs to HTTP/HTTPS endpoints. For details, see

Example output configurations

      tags: "[]"
      flush_interval: 10s


Output Config

auth (*HTTPAuth, optional)

HTTP auth

buffer (*Buffer, optional)


content_type (string, optional)

Content-Profile for HTTP request.

endpoint (string, required)

Endpoint for HTTP request.

error_response_as_unrecoverable (*bool, optional)

Raise UnrecoverableError when the response code is non success, 1xx/3xx/4xx/5xx. If false, the plugin logs error message instead of raising UnrecoverableError.

Default: true

format (*Format, optional)


http_method (string, optional) {#output config-http_method}

Method for HTTP request. [post, put]

Default: post

headers (map[string]string, optional)

Additional headers for HTTP request.

json_array (bool, optional)

Using array format of JSON. This parameter is used and valid only for json format. When json_array as true, Content-Profile should be application/json and be able to use JSON data for the HTTP request body.

Default: false

open_timeout (int, optional)

Connection open timeout in seconds.

proxy (string, optional)

Proxy for HTTP request.

read_timeout (int, optional)

Read timeout in seconds.

retryable_response_codes ([]int, optional)

List of retryable response codes. If the response code is included in this list, the plugin retries the buffer flush. Since Fluentd v2 the Status code 503 is going to be removed from default.

Default: [503]

ssl_timeout (int, optional)

TLS timeout in seconds.

slow_flush_log_threshold (string, optional)

The threshold for chunk flush performance check. Parameter type is float, not time, default: 20.0 (seconds) If chunk flush takes longer time than this threshold, fluentd logs warning message and increases metric fluentd_output_status_slow_flush_count.

tls_ca_cert_path (*secret.Secret, optional)

The CA certificate path for TLS.

tls_ciphers (string, optional)

The cipher configuration of TLS transport.

Default: ALL:!aNULL:!eNULL:!SSLv2

tls_client_cert_path (*secret.Secret, optional)

The client certificate path for TLS.

tls_private_key_passphrase (*secret.Secret, optional)

The client private key passphrase for TLS.

tls_private_key_path (*secret.Secret, optional)

The client private key path for TLS.

tls_verify_mode (string, optional)

The verify mode of TLS. [peer, none]

Default: peer

tls_version (string, optional)

The default version of TLS transport. [TLSv1_1, TLSv1_2]

Default: TLSv1_2

HTTP auth config


password (*secret.Secret, required) {#http auth-config-password}

Password for basic authentication. Secret

username (*secret.Secret, required) {#http auth-config-username}

Username for basic authentication. Secret