Skip to main content

log_delivery

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

Overview

Namelog_delivery
TypeResource
Iddatabricks_account.logging.log_delivery

Fields

The following fields are returned by SELECT queries:

The log delivery configuration was successfully returned.

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectGets a Databricks log delivery configuration object for an account, both specified by ID.
listselectGets all Databricks log delivery configurations associated with an account specified by ID.
createinsertCreates 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
patchstatusexecEnables 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

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

SELECT examples

Gets a Databricks log delivery configuration object for an account, both specified by ID.

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

INSERT examples

Creates 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

INSERT INTO databricks_account.logging.log_delivery (
data__log_delivery_configuration
)
SELECT
'{{ log_delivery_configuration }}'
RETURNING
log_delivery_configuration
;

Lifecycle Methods

Enables 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

EXEC databricks_account.logging.log_delivery.patchstatus 
@@json=
'{
"status": "{{ status }}"
}';