Create a new pipeline
POST /pipeline/create
Creates a new pipeline. If autostart.created
is true
, the response is only sent after the pipeline was successfully started. If this fails, then the pipeline is immediately discarded, and the response contains the observed diagnostics. The error field then contains a rendered representation of the diagnostics. Otherwise, the diagnostics field is not present.
Authorizations
Request Body required
object
The pipeline definition.
export | where foo | publish /bar
The human-readable name of the pipeline.
zeek-monitoring-pipeline
A flag specifying whether this pipeline is hidden. Hidden pipelines start automatically, are not persisted, and will not show up in the /pipeline/list endpoint response.
A duration string specifying the maximum time for this pipeline to
exist. No value means the pipeline is allowed to exist forever.
This parameter must be defined if the hidden
parameter is true.
5min
Flags that specify on which state to restart the pipeline.
object
Autostart the pipeline upon creation.
true
Autostart the pipeline upon completion.
Autostart the pipeline upon failure.
Flags that specify on which state to delete the pipeline.
object
Autodelete the pipeline upon completion.
Autodelete the pipeline upon failure.
true
Autodelete the pipeline when it stops before completing.
A duration string specifying the minimum time between automatic restarts of a pipeline when an error occurs. Takes no effect if restarting on failure is disabled.
500ms
A flag specifying whether this pipeline is unstoppable. Unstoppable pipelines start automatically, fail when they complete, and can not be paused or stopped manually.
true
Responses
200
Success.
object
The id of the successfully created pipeline.
400
Invalid arguments or invalid pipeline.
object
The error message.
Invalid arguments
object
unknown option `--frobnify`
object
A potentially empty label.
this option does not exist
A region in the source code, defined by byte offsets.
object
42
48
object
usage
file <path> [-f|--follow] [-m|--mmap] [-t|--timeout <duration>]
[1m[31merror[39m: unknown option `--frobnify`[0m