Skip to content

Exec

Obtain data by executing a shell command.

FieldTypeRequiredDescription
triggertriggerWhen and How to run the command.
retryRetryRetry policy.
commandmultiline-text (string)A shell command (Powershell on Windows, system shell otherwise).
batchBatchMarking each group of input events in a distinct way.
resultResultFields where output, errors and status go (default is just stdout).
jsonboolean (bool)True if the input is already in JSON format.
no-strip-linefeedsboolean (bool)Do not remove any line endings from the command.
ignore-line-breaksboolean (bool)Treat result as one event.
envexec_input:envEnvironment as a YAML file or inline name-value pairs.
timeoutstringMaximum time to wait (500ms, 2s, etc).
FieldTypeRequiredDescription
countintegerHow to retry? Either forever or for a limited number of times.
pausestringHow long to pause before re-trying.
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.
FieldTypeRequiredDescription
status-fieldstringField where exit status of command will be stored.
stderr-fieldstringField where stderr of command will be stored.
stdout-fieldstringField where stdout of command will be stored.