Skip to main content

log_delivery

Operations on a log_delivery resource.

Overview

Namelog_delivery
TypeResource
Iddatabricks_account.logging.log_delivery

Fields

NameDatatype
account_idstring
config_idstring
config_namestring
creation_timeinteger
credentials_idstring
delivery_path_prefixstring
delivery_start_timestring
log_delivery_statusobject
log_typestring
output_formatstring
statusstring
storage_configuration_idstring
update_timeinteger
workspace_ids_filterarray

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccount_id, log_delivery_configuration_idGets a Databricks log delivery configuration object for an account, both specified by ID.
listSELECTaccount_idGets all Databricks log delivery configurations associated with an account specified by ID.
createINSERTaccount_idCreates a new Databricks log delivery configuration to enable delivery of the specified type of logs to your storage location. This requires that you already created a
patchstatusEXECaccount_id, log_delivery_configuration_idEnables or disables a log delivery configuration. Deletion of delivery configurations is not supported, so disable log delivery configurations that are no longer needed. Note that you can't re-enable a delivery configuration if this would violate the delivery configuration limits described under

SELECT examples

SELECT
account_id,
config_id,
config_name,
creation_time,
credentials_id,
delivery_path_prefix,
delivery_start_time,
log_delivery_status,
log_type,
output_format,
status,
storage_configuration_id,
update_time,
workspace_ids_filter
FROM databricks_account.logging.log_delivery
WHERE account_id = '{{ account_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new log_delivery resource.

/*+ create */
INSERT INTO databricks_account.logging.log_delivery (
account_id,
data__log_delivery_configuration
)
SELECT
'{{ account_id }}',
'{{ log_delivery_configuration }}'
;