Skip to main content

pipelines

Creates, updates, deletes, gets or lists a pipelines resource.

Overview

Namepipelines
TypeResource
Iddatadog.logs.pipelines

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the pipeline.
namestringName of the pipeline. (example: )
descriptionstringA description of the pipeline.
filterobjectFilter for logs.
is_enabledbooleanWhether or not the pipeline is enabled.
is_read_onlybooleanWhether or not the pipeline can be edited.
processorsarrayOrdered list of processors in this pipeline.
tagsarrayA list of tags associated with the pipeline.
typestringType of pipeline. (example: pipeline)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_logs_pipelineselectpipeline_idGet a specific pipeline from your organization.<br />This endpoint takes no JSON arguments.
list_logs_pipelinesselectGet all pipelines from your organization.<br />This endpoint takes no JSON arguments.
create_logs_pipelineinsertnameCreate a pipeline in your organization.
update_logs_pipelinereplacepipeline_id, nameUpdate a given pipeline configuration to change it’s processors or their order.<br /><br />Note: Using this method updates your pipeline configuration by replacing<br />your current configuration with the new one sent to your Datadog organization.
delete_logs_pipelinedeletepipeline_idDelete a given pipeline from your organization.<br />This endpoint takes no JSON arguments.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
pipeline_idstringID of the pipeline to delete.
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

SELECT examples

Get a specific pipeline from your organization.<br />This endpoint takes no JSON arguments.

SELECT
id,
name,
description,
filter,
is_enabled,
is_read_only,
processors,
tags,
type
FROM datadog.logs.pipelines
WHERE pipeline_id = '{{ pipeline_id }}' -- required
;

INSERT examples

Create a pipeline in your organization.

INSERT INTO datadog.logs.pipelines (
description,
filter,
is_enabled,
name,
processors,
tags
)
SELECT
'{{ description }}',
'{{ filter }}',
{{ is_enabled }},
'{{ name }}' /* required */,
'{{ processors }}',
'{{ tags }}'
RETURNING
id,
name,
description,
filter,
is_enabled,
is_read_only,
processors,
tags,
type
;

REPLACE examples

Update a given pipeline configuration to change it’s processors or their order.<br /><br />Note: Using this method updates your pipeline configuration by replacing<br />your current configuration with the new one sent to your Datadog organization.

REPLACE datadog.logs.pipelines
SET
description = '{{ description }}',
filter = '{{ filter }}',
is_enabled = {{ is_enabled }},
name = '{{ name }}',
processors = '{{ processors }}',
tags = '{{ tags }}'
WHERE
pipeline_id = '{{ pipeline_id }}' --required
AND name = '{{ name }}' --required
RETURNING
id,
name,
description,
filter,
is_enabled,
is_read_only,
processors,
tags,
type;

DELETE examples

Delete a given pipeline from your organization.<br />This endpoint takes no JSON arguments.

DELETE FROM datadog.logs.pipelines
WHERE pipeline_id = '{{ pipeline_id }}' --required
;