Skip to main content

vw_log_delivery_configurations

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

Overview

Namevw_log_delivery_configurations
TypeView
Iddatabricks_account.billing.vw_log_delivery_configurations

Fields

The following fields are returned by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.
config_idstringUnique identifier for the log delivery configuration.
config_namestringHuman-readable name of the log delivery configuration.
log_typestringType of logs being delivered (e.g. BILLABLE_USAGE, AUDIT_LOGS).
output_formatstringFormat of the delivered log files (e.g. CSV, JSON).
credentials_idstringID of the credentials used to write logs to the storage destination.
storage_configuration_idstringID of the storage configuration that defines the delivery destination.
delivery_path_prefixstringOptional path prefix prepended to log file paths in the storage destination.
delivery_start_timestringOptional earliest date from which logs are delivered (YYYY-MM-DD).
statusstringEnabled/disabled status of the log delivery configuration.
creation_timeintegerUnix timestamp (ms) when the configuration was created.
update_timeintegerUnix timestamp (ms) when the configuration was last updated.
delivery_statusstringStatus of the most recent log delivery attempt.
delivery_status_messagestringHuman-readable message describing the most recent delivery attempt result.
last_attempt_timestringTimestamp of the most recent delivery attempt (ISO 8601).
last_successful_attempt_timestringTimestamp of the most recent successful delivery attempt (ISO 8601).
workspace_ids_filterarrayList of workspace IDs to include in log delivery; empty means all workspaces.

Required Parameters

The following parameters are required by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.

SELECT Examples

SELECT
account_id,
config_id,
config_name,
log_type,
output_format,
credentials_id,
storage_configuration_id,
delivery_path_prefix,
delivery_start_time,
status,
creation_time,
update_time,
delivery_status,
delivery_status_message,
last_attempt_time,
last_successful_attempt_time,
workspace_ids_filter
FROM databricks_account.billing.vw_log_delivery_configurations
WHERE account_id = '{{ account_id }}';

SQL Definition

SELECT
ld.account_id,
ld.config_id,
ld.config_name,
ld.log_type,
ld.output_format,
ld.credentials_id,
ld.storage_configuration_id,
ld.delivery_path_prefix,
ld.delivery_start_time,
ld.status,
ld.creation_time,
ld.update_time,
JSON_EXTRACT(ld.log_delivery_status, '$.status') AS delivery_status,
JSON_EXTRACT(ld.log_delivery_status, '$.message') AS delivery_status_message,
JSON_EXTRACT(ld.log_delivery_status, '$.last_attempt_time') AS last_attempt_time,
JSON_EXTRACT(ld.log_delivery_status, '$.last_successful_attempt_time') AS last_successful_attempt_time,
ld.workspace_ids_filter
FROM databricks_account.billing.log_delivery ld
WHERE account_id = '{{ account_id }}'