Skip to content

HTTP Post

HTTP Post (http-post)

POST event data to an HTTPS server.

Http json

Minimal example

output:
http-post:
url: ""
JSON
{
"output": {
"http-post": {
"url": ""
}
}
}

Contents

Fields

FieldTypeRequiredDescription
url Requesturl (string)The URL may contain ${} field expansions.
Examples: https://example.com/path
batch ProcessingBatchCollect input events together into batches.
body PayloadBodyHow to construct the request body (event, field, or literal).
headers Requestmap (string)HTTP headers of the request.
idempotency-key-field Requestfield (string)Field providing the value for the Idempotency-Key header when supported by the sink.
Examples: data_field
retry ReliabilityRetryHow to retry failed requests.
insecure Securityboolean (bool)Ignore TLS certificate validation errors (This is unsafe to use).
method RequestMethodHTTP method to use for the query (either ‘get’ or ‘post’).
Allowed values: get, post, put, patch, delete, options, head

Processing

Show fields
FieldTypeRequiredDescription
batchBatchCollect input events together into batches.

Request

Show fields
FieldTypeRequiredDescription
urlurl (string)The URL may contain ${} field expansions.
Examples: https://example.com/path
headersmap (string)HTTP headers of the request.
idempotency-key-fieldfield (string)Field providing the value for the Idempotency-Key header when supported by the sink.
Examples: data_field
methodMethodHTTP method to use for the query (either ‘get’ or ‘post’).
Allowed values: get, post, put, patch, delete, options, head

Payload

Show fields
FieldTypeRequiredDescription
bodyBodyHow to construct the request body (event, field, or literal).

Reliability

Show fields
FieldTypeRequiredDescription
retryRetryHow to retry failed requests.

Security

Show fields
FieldTypeRequiredDescription
insecureboolean (bool)Ignore TLS certificate validation errors (This is unsafe to use).

Schema

Body Options

OptionNameTypeDescription
eventEventmap
fieldFieldobject
literalLiteralobject

Batch Fields

FieldTypeRequiredDescription
fixed-sizenumber (integer)maximum number of events in an output batch.
Examples: 42, 1.2e-10
modeModeIf ‘document’ send on end of document generated by input. If ‘fixed’, use fixed_size.
Allowed values: fixed, document
timeouttime-interval (string)interval after which the batch is sent, to keep throughput going (default 100ms).
Examples: 500ms, 2h
headermultiline-text (string)put a header line before the batch.
footermultiline-text (string)put a header line after the last line of the batch.
use-document-markerboolean (bool)Enrich the job metadata with a document marker (for document handling in batch mode).
wrap-as-jsonboolean (bool)Format the output batch as a JSON array.

Body - Field Fields

FieldTypeRequiredDescription
fieldstring

Body - Literal Fields

FieldTypeRequiredDescription
valuestringLiteral/template request body; supports ${} expansions and multiline YAML strings.

Retry Fields

FieldTypeRequiredDescription
timeouttime-interval (string)timeout (e.g. 500ms, 2s etc. - default is 30).
Examples: 500ms, 2h
retriesnumber (integer)number of retries.
Examples: 42, 1.2e-10

Headers Table

HeaderValue
Header-Namevalue

Value format: templated-text.

Batch - Mode Options

ValueDescription
fixedFixed
documentDocument

Method Options

ValueDescription
getGet
postPost
putPut
patchPatch
deleteDelete
optionsOptions
headHead