[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-03 (世界標準時間)。"],[],[],null,["# File system transfer logs\n\nThis document describes the current file system transfer log format.\n| **Note:** The log format described on this page is subject to change. We recommend that you avoid writing scripts, programs, or design processes that depend on the ordering, naming, or presence of columns or values in this log. Refer to this page and [Storage Transfer Service release notes](/storage-transfer/docs/release-notes) for updates to the log format.\n\nView transfer logs\n------------------\n\nFile system transfers produce detailed transfer logs that you can use to verify\nthe results of your transfer job. Each job produces a collection of transfer\nlogs that are stored in the transer's Cloud Storage bucket: the source\nbucket, destination bucket, or intermediate bucket, depending on the transfer\ndirection.\n\nLogs are produced while the transfer job is running. The complete logs are\ntypically available within 15 minutes of job completion.\n| **Important:** Anyone that has access to the Cloud Storage bucket has access to the transfer logs.\n\n### View logs in the Cloud Storage bucket\n\nTransfer logs are stored in the transfer's Cloud Storage bucket at the\nfollowing path:\n\n\u003cvar translate=\"no\"\u003ebucket-name\u003c/var\u003e`/storage-transfer/logs/transferJobs/`\u003cvar translate=\"no\"\u003ejob-name\u003c/var\u003e`/transferOperations/`\u003cvar translate=\"no\"\u003eoperation-name\u003c/var\u003e\n\nwhere:\n\n- \u003cvar translate=\"no\"\u003ebucket-name\u003c/var\u003e is the name of the Cloud Storage bucket involved in this transfer.\n- \u003cvar translate=\"no\"\u003ejob-name\u003c/var\u003e is the job name, as displayed in the [job list](#monitoring-jobs).\n- \u003cvar translate=\"no\"\u003eoperation-name\u003c/var\u003e is the name of the individual transfer operation, comprised as the IS08601 timestamp and generated ID.\n\nLogs are aggregated and stored as objects. Each batch of logs is named by its\ncreation time. For example:\n\n`my\nbucket/storage-transfer/logs/transferOperations/job1/2019-10-19T10_52_56.519081644-07_00.log`\n\nRun BigQuery queries on transfer logs\n-------------------------------------\n\nTo run BigQuery queries on your transfer logs:\n\n1. [Load the CSV log data into BigQuery](/bigquery/docs/loading-data-cloud-storage-csv).\n\n2. Run your\n [BigQuery query](/bigquery/docs/reference/standard-sql/query-syntax).\n\n### Example queries\n\n**Display the number of files that attempted transfer and whether they failed\nor succeeded** \n\n```\nselect ActionStatus, count(*) as num_files\nfrom big-query-table\nwhere Action=\"TRANSFER\"\ngroup by 1;\n```\n\nWhere \u003cvar translate=\"no\"\u003ebig-query-table\u003c/var\u003e is the name of the\nBigQuery table that contains the transfer log.\n\n**Display all files that failed to transfer** \n\n```\nselect Src_File_Path\nfrom big-query-table\nwhere Action=\"TRANSFER\" and ActionStatus=\"FAILED\";\n```\n\nWhere \u003cvar translate=\"no\"\u003ebig-query-table\u003c/var\u003e is the name of the\nBigQuery table that contains the transfer log.\n\n**Display checksum and timestamp for each file that successfully transferred** \n\n```\nselect Timestamp, Action, ActionStatus, Src_File_Path, Src_File_Size,\nSrc_File_Crc32C, Dst_Gcs_BucketName, Dst_Gcs_ObjectName, Dst_Gcs_Size,\nDst_Gcs_Crc32C, Dst_Gcs_Md5\nfrom big-query-table\nwhere Action=\"TRANSFER\" and ActionStatus=\"SUCCEEDED\";\n```\n\nWhere \u003cvar translate=\"no\"\u003ebig-query-table\u003c/var\u003e is the name of the\nBigQuery table that contains the transfer log.\n\n**Display all error information for directories that failed to transfer** \n\n```\nselect FailureDetails_ErrorType, FailureDetails_GrpcCode, FailureDetails_Message\nfrom big-query-table\nwhere Action=\"FIND\" and ActionStatus=\"FAILED\";\n```\n\nWhere \u003cvar translate=\"no\"\u003ebig-query-table\u003c/var\u003e is the name of the\nBigQuery table that contains the transfer log.\n\nFormat description\n------------------\n\nFile system transfer logs are saved in tab-separated values (TSV) format, and\ncontain a header row with field names. The order that the fields are displayed\nare generally stable, but aren't guaranteed, and must be inferred from the\nheader row.\n\nEach line represents a single log record, that is a status update on part of the\noverall transfer operation.\n| **Note:** Storage Transfer Service doesn't record log entries for skipped files.\n\nThe following table describes the fields in the log file:\n\nExample log entry\n-----------------\n\nThe following is an example of two lines of log output, the header and a data\nline: \n\n```\nTimestamp OperationName Action ActionStatus FailureDetails.ErrorType FailureDetails.GrpcCode FailureDetails.Message Src.Type Src.File.Path Src.File.LastModified Src.File.Size Src.File.Crc32C Dst.Type Dst.Gcs.BucketName Dst.Gcs.ObjectName Dst.Gcs.LastModified Dst.Gcs.Size Dst.Gcs.Crc32C Dst.Gcs.Md5\n2019-10-18T21:06:17Z transferOperations/agent-manual_transferJobs/OPI1494275376193533620_0000000001571432448 TRANSFER SUCCEEDED ON_PREM_FILE /mnt/disks/disk-1/directory1/file.txt 1561409931 406 3089075447 GCS_OBJECT destination-gcs-bucket file.txt 1571432776 406 3089075447 FDjya7dWbd0OrgnZ7g9ZJw==\n```"]]