如何在 BigQuery 的 AuditLog 上查看 callerIP?

How can I see callerIP on BigQuery's AuditLog?

我使用 BigQuery 的 AuditLog 查看我公司外部对 BigQuery 的访问,在 "protoPayload" 字段中的 "requestMetadata" 字段中使用 callerIP,但是 callerIP 中的值不知何故消失了自日本时间 2018/9/1 起 "methodName" in "protoPayload" 字段设置为 "jobservice.jobcompleted".
当 "methodName" 设置为 "jobservice.insert"、"jobservice.query" 等其他设置时,callerIP 照常显示。

关于显示 callerIP 的 BigQuery 审核日志规范是否已更改?
当"methodName"设置为"jobservice.jobcompleted"时,如何重新显示callerIP
(虽然看起来 "jobservice.query" 也有效,但如果我只想查看从公司外部使用 callerIP 访问 BigQuery)。

cf:AuditLog

您可以通过自连接取回所需的数据:

SELECT a.protopayload_auditlog.requestMetadata.callerIp 
FROM `your-project.audit.cloudaudit_googleapis_com_data_access_20180904`  a
JOIN `your-project.audit.cloudaudit_googleapis_com_data_access_20180904`  b
ON 
 a.protopayload_auditlog.servicedata_v1_bigquery.jobInsertResponse.resource.jobName.jobId
 =b.protopayload_auditlog.servicedata_v1_bigquery.jobCompletedEvent.job.jobName.jobId

我没有关于实施这些更改的原因的更多信息,但我可以确认在 8 月份两行都显示了 callerIp - 而现在只有 jobInsertResponse 显示了 callerIp。