Skip to content

HTTP Poll

HTTP Poll (http-poll)

Run HTTP queries.

Contents

Fields

FieldTypeRequiredDescription
triggertriggerWhen and How to run this input.
retryRetryHow to retry operation if it fails.
batchBatchMarking each group of input events in a distinct way.
urlurl (string)The URL for this request.
jsonboolean (bool)Use for when data is text or already JSON.
ignore-line-breaksboolean (bool)Do not treat separate lines as distinct events.
events-fieldevent-field (string)extract events from this field of the response, assumed to be an array. Body is assumed to be JSON and we ignore line breaks.
document-modeboolean (bool)collect all the output together as a single document (will affect batching on the output).
headersstringHeaders to send with the query.
querystringQuery parameters to send with the query.
authAuthBasic HTTP authentication (user:pass).
bodymultiline-text (string)The payload to send.
form-urlencoded-bodystringPayload as key-value pairs posted as form-urlencoded.
methodMethodHTTP method to use for the query - default is GET.
timeouttime-interval (string)Timeout for the request (e.g. 500ms, 2s, etc. - the default is 30 seconds).
responseResponseFields to include in returned event.
insecureboolean (bool)Ignore TLS certificate validation errors (This is unsafe to use).

Retry Fields

FieldTypeRequiredDescription
countintegerThe number of retry attempts. If unspecified, retries will continue indefinitely.
pausestringHow long to pause before re-trying.

Batch Fields

FieldTypeRequiredDescription
uuid-fieldstringField where generated uuid, the unique marker for the group, will be stored.
invocation-time-fieldstringField where invocation time will be stored.
completion-time-fieldstringField where completion (end of execution) time will be stored.
begin-marker-fieldstringField used to mark first event in the group.
end-marker-fieldstringField used to mark last event in the group.
line-count-fieldstringField used to store the line count of the batch.
line-num-fieldstringField used to store the line number of the batch.

Auth Fields

FieldTypeRequiredDescription
usernamestringName of User.
passwordstringPassword.

Response Fields

FieldTypeRequiredDescription
jsonboolReturn response in JSON format as single line-delimited event.
status-fieldstringField to store HTTP status code.
headers-fieldstringField to store response headers.
response-fieldstringField to store the body of the response.

Method Options

ValueNameDescription
getgetGet
postpostPost
putputPut
patchpatchPatch
deletedeleteDelete
optionsoptionsOptions
headheadHead