POST /pipeline/create
Creates a pipeline.
If autostart.created is true, Tenzir sends the response after the
pipeline starts successfully. If startup fails, Tenzir discards the
pipeline and returns the observed diagnostics.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Pipeline creation request.
object
The pipeline ID. If omitted, Tenzir generates a random ID.
Example
08446737-da9b-4787-8599-97d85c48c3bbThe pipeline definition.
Example
export | where foo | publish /barThe human-readable name of the pipeline.
Example
zeek-monitoring-pipelineWhether this pipeline is hidden. Hidden pipelines start automatically,
are not persisted, and are omitted from the /pipeline/list 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.
Example
5minFlags that specify on which state to restart the pipeline.
object
Autostart the pipeline upon creation.
Example
trueAutostart 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.
Example
trueAutodelete 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.
Example
500msWhether this pipeline is unstoppable. Unstoppable pipelines start automatically, fail when they complete, and can’t be paused or stopped manually.
Example
trueExample
{ "definition": "export | where foo | publish /bar", "name": "zeek-monitoring-pipeline", "hidden": false}Responses
Section titled “ Responses ”The pipeline was created.
object
The id of the successfully created pipeline.
Example
4c7f2b11-6169-4d1b-89b4-4fc0a68b3d4aInvalid arguments or invalid pipeline.
object
The error message.
Example
Invalid argumentsobject
Example
unknown option `--frobnify`object
A potentially empty label.
Example
this option does not existA region in the source code, defined by byte offsets.
object
Example
42Example
48object
Example
usageExample
file <path> [-f|--follow] [-m|--mmap] [-t|--timeout <duration>]Example
[1m[31merror[39m: unknown option `--frobnify`[0m