

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# EventBridge 管道日誌結構描述參考
<a name="eb-pipes-logs-schema"></a>

下列參考資料詳細說明 EventBridge 管道記錄檔日誌的結構描述。

每個日誌記錄代表一個管道執行步驟，如果管道來源和目標已設定為批次處理，則可能包含多達 10,000 個事件。

如需詳細資訊，請參閱[記錄 Amazon EventBridge 管道效能](eb-pipes-logs.md)。

```
{
    "executionId": "guid",
    "timestamp": "date_time",
    "messageType": "execution_step",
    "resourceArn": "arn:aws:pipes:region:account:pipe/pipe-name",
    "logLevel": "TRACE | INFO | ERROR",
    "payload": "{}",
    "awsRequest": "{}"
    "awsResponse":"{}"
    "truncatedFields": ["awsRequest","awsResponse","payload"],
    "error": {
        "httpStatusCode": code,
        "message": "error_message",
        "details": "",
        "awsService": "service_name",
        "requestId": "service_request_id"
    }
}
```

**executionId**  <a name="pipe-log-schema-execution-id"></a>
管道執行的識別碼。  
管道接收到的每個事件或一批事件，而該事件傳遞到一個擴充或目標都被視為管道執行。如需詳細資訊，請參閱[Amazon EventBridge Pipes 記錄的方式](eb-pipes-logs.md#eb-pipes-logs-overview)。

**timestamp**  <a name="pipe-log-schema-timestamp"></a>
發出日誌事件的日期和時間。  
單位：毫秒。

**messageType**  <a name="pipe-log-schema-message-type"></a>
為其產生記錄的管道執行步驟。  
如需執行步驟的詳細資訊，請參閱 [EventBridge Pipes 執行步驟](eb-pipes-logs-execution-steps.md)。

**resourceArn**  <a name="pipe-log-schema-resource-arn"></a>
管道的 Amazon Resource Name (ARN)。

**logLevel**  <a name="pipe-log-schema-loglevel"></a>
為管道日誌指定的詳細資料層級。  
*有效值*：`ERROR` \$1 `INFO` \$1 `TRACE`  
如需詳細資訊，請參閱[指定 EventBridge 管道日誌層級](eb-pipes-logs.md#eb-pipes-logs-level)。

**payload**  <a name="pipe-log-schema-payload"></a>
管道正在處理的事件批次的內容。  
只有當您指定在此管道的日誌中包含執行資料時，EventBridge 才會包含此欄位。如需詳細資訊，請參閱[在 EventBridge 管道日誌中包含執行資料](eb-pipes-logs.md#eb-pipes-logs-execution-data)  
這些欄位可能包含敏感資訊。在記錄期間，EventBridge 不會嘗試編輯這些欄位的內容。
如需詳細資訊，請參閱[在 EventBridge 管道日誌中包含執行資料](eb-pipes-logs.md#eb-pipes-logs-execution-data)。

**awsRequest**  <a name="pipe-log-schema-aws-request"></a>
以 JSON 格式傳送至擴充或目標服務的要求。對於傳送至 API 目的地的要求，這代表傳送至該端點的 HTTP 要求。  
只有當您指定在此管道的日誌中包含執行資料時，EventBridge 才會包含此欄位。如需詳細資訊，請參閱[在 EventBridge 管道日誌中包含執行資料](eb-pipes-logs.md#eb-pipes-logs-execution-data)  
這些欄位可能包含敏感資訊。在記錄期間，EventBridge 不會嘗試編輯這些欄位的內容。
如需詳細資訊，請參閱[在 EventBridge 管道日誌中包含執行資料](eb-pipes-logs.md#eb-pipes-logs-execution-data)。

**awsResponse**  <a name="pipe-log-schema-aws-response"></a>
以 JSON 格式表示擴充或目標傳回的回應。對於傳送至 API 目的地的要求，這代表從該端點傳回的 HTTP 回應，而不是 API 目的地服務本身傳回的回應。  
只有當您指定在此管道的日誌中包含執行資料時，EventBridge 才會包含此欄位。如需詳細資訊，請參閱[在 EventBridge 管道日誌中包含執行資料](eb-pipes-logs.md#eb-pipes-logs-execution-data)  
這些欄位可能包含敏感資訊。在記錄期間，EventBridge 不會嘗試編輯這些欄位的內容。
如需詳細資訊，請參閱[在 EventBridge 管道日誌中包含執行資料](eb-pipes-logs.md#eb-pipes-logs-execution-data)。

**truncatedFields**  <a name="pipe-log-schema-truncated-fields"></a>
EventBridge 已截斷任何執行資料欄位的清單，以使記錄保持在 256 KB 的大小限制之下。  
如果 EventBridge 不需要截斷任何執行資料欄位，則此欄位仍然存在，除了 `null`。  
如需詳細資訊，請參閱[截斷 EventBridge 管道日誌中的執行資料](eb-pipes-logs.md#eb-pipes-logs-execution-data-truncation)。

**error**  <a name="pipe-log-schema-error"></a>
包含在此管道執行步驟期間產生之任何錯誤的資訊。  
如果在此管道執行步驟期間未產生錯誤，則此欄位存在，除了 `null`。    
**httpStatusCode**  <a name="pipe-log-schema-http-status-code"></a>
被呼叫的服務傳回的 HTTP 狀態碼。  
**message**  <a name="pipe-log-schema-message"></a>
呼叫的服務傳回的錯誤訊息。  
**詳細資訊**  <a name="pipe-log-schema-details"></a>
被呼叫的服務傳回的任何詳細錯誤資訊。  
**awsService**  <a name="pipe-log-schema-aws-service"></a>
被呼叫的服務的名稱。  
**requestId**  <a name="pipe-log-schema-request-id"></a>
被呼叫的服務發出此請求的 ID。