Skip to main content

monitoring_datasets

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

Overview

Namemonitoring_datasets
TypeResource
Iddatadog.security.monitoring_datasets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe UUID of the dataset. (example: 123e4567-e89b-12d3-a456-426614174000)
attributesobjectThe attributes of a Cloud SIEM dataset.
typestringThe type of resource for a dataset response. (dataset) (example: dataset)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_security_monitoring_datasetselectdataset_idGet the current version of a Cloud SIEM dataset by ID.
list_security_monitoring_datasetsselectpage[size], page[number], sort, filter[query]List all Cloud SIEM datasets available to the organization, including both<br />customer-defined datasets and Datadog out-of-the-box datasets.
create_security_monitoring_datasetinsertdataCreate a new Cloud SIEM dataset. A dataset bundles a data source, a set of<br />indexes, and a search query that can be referenced from detection rules.
update_security_monitoring_datasetupdatedataset_id, dataUpdate an existing Cloud SIEM dataset. The current version of the dataset can be<br />provided to detect concurrent modifications.
delete_security_monitoring_datasetdeletedataset_idDelete a Cloud SIEM dataset. Out-of-the-box datasets cannot be deleted and<br />deleting a dataset that is referenced by a detection rule is rejected.

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
dataset_idstringThe UUID of the dataset.
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.
filter[query]stringA search query to filter datasets by name or description.
page[number]integer (int64)Specific page number to return.
page[size]integer (int64)Size for a given page. The maximum allowed value is 100.
sortstringAttribute used to sort datasets. Prefix with - to sort in descending order.

SELECT examples

Get the current version of a Cloud SIEM dataset by ID.

SELECT
id,
attributes,
type
FROM datadog.security.monitoring_datasets
WHERE dataset_id = '{{ dataset_id }}' -- required
;

INSERT examples

Create a new Cloud SIEM dataset. A dataset bundles a data source, a set of<br />indexes, and a search query that can be referenced from detection rules.

INSERT INTO datadog.security.monitoring_datasets (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;

UPDATE examples

Update an existing Cloud SIEM dataset. The current version of the dataset can be<br />provided to detect concurrent modifications.

UPDATE datadog.security.monitoring_datasets
SET
data = '{{ data }}'
WHERE
dataset_id = '{{ dataset_id }}' --required
AND data = '{{ data }}' --required;

DELETE examples

Delete a Cloud SIEM dataset. Out-of-the-box datasets cannot be deleted and<br />deleting a dataset that is referenced by a detection rule is rejected.

DELETE FROM datadog.security.monitoring_datasets
WHERE dataset_id = '{{ dataset_id }}' --required
;