Skip to content
Last updated

Premium Audit Log Reference

The Premium Audit Log has the following table columns. If your events don’t have a corresponding value for a specific column, that column will not show in the audit log.

Column NameData TypeDescriptionExamples
account_idlongTreasure account ID
affected_userstringe-mail address of the affected user of a completed change, such as API key changes
affected_user_idlongThe ID - viewable in the API only - of the user acted upon
amountlongNumber of records inserted, viewed, or downloaded
apikey_typestringThe type of API key used for an operation: master or writemaster; write
attribute_namestringWhen the resource attribute is changed, the name of the attribute is stored. For example, if a user changed their table schema, the attribute_name is "schema".password schema
bytesizelongDownloaded size of the data. Actions include job result download.24
caller_account_idlongThe ID of the account which owns a delegation token
caller_user_idlongThe ID of the user who owns a delegation token
countlongNumber of items viewed200

diagnostic_messages

string

Includes diagnostic information for detailed investigation by Treasure AI engineers.

String representation of JSON map object containing some of the following keys: task_arn, network_interface_id, error_message, ecs_stop_code, ecs_stopped_reason, ecs_container_status, ecs_container_status_reason.

Example: {"task_arn":"arn:aws:ecs:us-east-1:671566194996:task/digdag-aws-development-aws-default-blue/b322c23709db43cbb76a4e83e949f00c","network_interface_id":"eni-0f4b1f34fa904290d","ecs_stop_code":"EssentialContainerExited"}

docker_imagestringThe docker image used for py>: taskdigdag/digdag-python:3.9
event_detailstringDetails about log-parsing events
event_namestringThe event. If the event is a component-specific operation, you see "event_name: cdp_create_segment"sign-in job_result_download schedule_create
event_resultstringA user who does not have enough permissions tries to access the endpoint. In the Audience Studio and Master Segments, this value always shows as "denied"denied
expires_atstringExpiration timestamp of a created API key, in ISO 8601 format (UTC). Empty when the API key has no expiration.2026-07-08T15:30:45Z
formatstringData format
idstringA random UUID (Universally Unique Identifier) for deduplication
ip_addressstringOf the connection that executed the audited event
is_scheduledstringIdentifies whether or not a workflow is scheduledtrue or false
jobstringDatabase and job id of, usually, the data transfertest_db.34596708
job_typestringDefines the type of job'ResultExportJob', 'BulkLoadJob', 'ExportJob'
new_valuestringWhen the resource attribute is changed, the new value is stored
old_valuestringThe value before the value was changed
policy_idlongThe ID of the policy providing permission for an event
primary_keysstringPrimary keys used in Active Data Layer operations
query_textstringQuery textSELECT * FROM table
reasonstringReason for SSO user creation
requested_http_verbstringThe API actionGET, POST, DELETE
requested_path_infostringThe event path./users/sign_in v4/jobs/5736181/result v3/table/create/new_db/new_table…
required_visibilitystringThe required visibility for a column visibility violationblocked, clear, non_pii, pii
resource_idlongDependent upon on event. If the event is "table_create", the ID is the created table id. If "database_delete", the ID is the deleted database id.
resource_namestringName of the resource being accessed, such as the name of workflow or segmentationcdp_audience_119770
resource_namespacestringThe namespace of a target annotation

resource_path

string

Resource path set in relation to resource_id

cdp_test_dashboard_2

cdp_segment_9447

cdp_audience_8833.metering_audience.2316954.2320343

resource_type

string

The type of resource

audience.predictive_segment

audience.segment.syndications

audience.segment_query.job

revision_created_userstringIncludes details pertaining to the workflow revision creator. String representation of JSON map object consists of id, email, and ip_address.{"id":11,"email":"tom@treasure-data.com","ip_address":"111.99.66.223"}
scheduled_timelongThe time specified for an event to occur
session_idlongThe workflow session id11388547
setting_namestringThe name given to an SSO setting.
sizelongFile size47
source_account_idlongThe source account in a table transfer event.
source_user_emailstringThe source user in a table transfer event.
source_user_idlongThe source user in a table transfer event.
target_account_idlongThe target account in a table transfer event
target_connectionstringTarget connection in the connector configurationfb_config
target_projectstringThe target project ID of a workflow annotation event
target_resource_idlongIn the event that there are two resources involved, it is the information of the secondary object given that "resource_id" contains the information of the primary object i.e. table 2 id.
target_resource_namestringIn the event that there are two resources involved, it is the information of the secondary object given that "resource_name" contains the information of the primary object i.e. table 2 name.
target_resource_namespacestringThe namespace of a target annotationPOLICY, RESOURCE
target_tablestringName of target DB and table. Actions include bulk import/loads, job creation, and execution.
target_user_emailstringThe email of the target user in a table transfer event
target_user_idlongThe ID of the target user in a table transfer eventtable_transfer
target_workflowstringThe target workflow ID of a workflow annotation event
task_created_atlongUNIX time when a custom script task was submitted for execution1632901248
task_durationlongThe elapsed time in seconds130
task_exit_codelongThe exit status of the python script0, 1, and so on
task_finished_atlongUNIX time when a custom script task finished execution1632901378
timeintUNIX timestamp for the event occurred time1586373958
user_emailstringThe Email of the operator
user_idlongOperator's user-id
visibilitystringThe visibility in a column visibility violation

Custom Script Log Reference

The Premium Audit Log includes the following columns for custom scripts.

Column NameData TypeDescriptionExample
account_idlongTreasure account ID1

diagnostic_messages

string

Includes diagnostic information for detailed investigation by Treasure AI engineers.

String representation of JSON map object containing some of the following keys: task_arn, network_interface_id, error_message, ecs_stop_code, ecs_stopped_reason, ecs_container_status, ecs_container_status_reason.

Example: {"task_arn":"arn:aws:ecs:us-east-1:671566194996:task/digdag-aws-development-aws-default-blue/b322c23709db43cbb76a4e83e949f00c","network_interface_id":"eni-0f4b1f34fa904290d","ecs_stop_code":"EssentialContainerExited"}

docker_imagestringThe docker image used for py>: taskdigdag/digdag-python:3.9
event_namestringThe type of audit eventcustom_script_task_starts or custom_script_task_ends
idstringRandom UUID2f789cb5-f02b-4d11-b64b-532b8a498c87
ip_addressstringThe IP address for the user who initiated the workflow attempt or the corresponding IP address for a user who created the workflow revision for a scheduled workflow.111.98.77.226
is_scheduledstringIdentifies whether or not a workflow is scheduledtrue or false
resource_idlongThe workflow session attempt ID12011427
resource_namestringproject_name[project_id].workflow_name@workflow_revisionyy_custom_script_test[41886].test1@cd7565b4-19ae-43c8-9030-36ba8a4ba180
resource_pathstringThe python script method specified in py>: tasktasks.example.print_arg
revision_created_userstringIncludes details pertaining to the workflow revision creator. String representation of JSON map object consists of id, email, and ip_address.{"id":11,"email":"tom@treasure-data.com","ip_address":"111.99.66.223"}
session_idlongThe workflow session id11388547
task_created_atlongUNIX time when a custom script task was submitted for execution1632901248
task_durationlongThe elapsed time in seconds130
task_exit_codelongThe exit status of the python script0, 1, and so on
task_finished_atlongUNIX time when a custom script task finished execution1632901378
timeintUNIX time when the event is ingested to TD table.1632901612
user_emailstringUser email address who initiated the workflow attempt. Or, email of the user who created the workflow revision for a scheduled workflow.bob@treasure-data.com
user_idlongID for the user who initiated the workflow attempt or the corresponding ID for a user who created the workflow revision for a scheduled workflow.11