Amazon EventBridge event bus log schema
The following reference details the schema for EventBridge event bus log records. Each record represent a step EventBridge performs processing a specific event.
For more information, see Logging event buses .
{ "resource_arn": "arn:aws:events:region:account:event-bus/bus-name", "request_id": "guid", "event_id": "guid", "invocation_id": "guid", "message_timestamp_ms": "date_time", "message_type": "step", "log_level": "TRACE|INFO|ERROR", "details": { }, "error": { "http_status_code":code, "error_message": "error_message", "aws_service": "service_name", "request_id": "service_request_id" } }
- resource_arn
-
The Amazon Resource Name (ARN) for the event bus.
- request_id
-
The ID of the request.
- event_id
-
The ID of the event being processed.
- invocation_id
-
The ID of the invocation for the event.
- message_timestamp_ms
-
The date and time the log event was emitted.
Unit: millisecond
- message_type
-
The event processing step for which the log record was generated.
For more information on the steps EventBridge performs when processing an event, see What Amazon EventBridge logs for event buses.
Valid values:
EVENT_INGEST_FAILUREEVENT_INGEST_SUCCESSEVENT_RECEIPTINVOCATION_ATTEMPT_PERMANENT_FAILUREINVOCATION_ATTEMPT_RETRYABLE_FAILUREINVOCATION_ATTEMPT_STARTINVOCATION_ATTEMPT_SUCCESSINVOCATION_ATTEMPT_THROTTLEINVOCATION_DLQINVOCATION_FAILUREINVOCATION_STARTINVOCATION_SUCCESSINVOCATION_THROTTLE_STARTNO_STANDARD_RULES_MATCHEDRULE_MATCHRULE_MATCH_START
- log_level
-
The level of detail specified for the event bus log.
Valid values:
ERROR|INFO|TRACEFor more information, see Specifying event bus log level.
- details
-
Contains step details, based on the step detail type.
The fields listed below are returned for the following message types:
-
EVENT_INGEST_SUCCESS -
EVENT_INGEST_FAILURE -
EVENT_RECEIPT -
RULE_MATCH_START
{ "caller_account_id": "account_id", "source_time_ms":date_time, "source": "source", "detail_type": "type", "resources": [], "event_detail": "{}" }The fields listed below are returned for the following message type:
-
RULE_MATCH
{ "rule_arn": "ARN", "target_arns": [ "ARN" ], "invocation_ids": [ "guid" ] }The fields listed below are returned for the following message types:
-
INVOCATION_ATTEMPT_START -
INVOCATION_START -
INVOCATION_THROTTLE_START
{ "rule_arn": "ARN", "role_arn": "ARN", "target_arn": "ARN", "attempt_count":Integer, "target_input": "string", "target_properties": "string" }The fields listed below are returned for the following message types:
-
INVOCATION_DLQ -
INVOCATION_FAILURE -
INVOCATION_SUCCESS
{ "rule_arn": "ARN", "role_arn": "ARN", "target_arn": "ARN", "target_input": "string", "target_properties": "string", "total_attempts":Integer, "final_invocation_status": "status", "ingestion_to_start_latency_ms":Integer, "ingestion_to_complete_latency_ms":Integer, "ingestion_to_success_latency_ms":Integer, "target_duration_ms":Integer, "target_response_body": "string" }The
ingestion_to_start_latency_msandingestion_to_complete_latency_msare only included in the first invocation attempt. Theingestion_to_success_latency_msfield is only included for successful invocations.The fields listed below are returned for the following message types:
-
INVOCATION_ATTEMPT_PERMANENT_FAILURE -
INVOCATION_ATTEMPT_RETRYABLE_FAILURE -
INVOCATION_ATTEMPT_SUCCESS -
INVOCATION_ATTEMPT_THROTTLE
{ "rule_arn": "ARN", "role_arn": "ARN", "target_arn": "ARN", "attempt_type": "FIRST|THROTTLE|RETRY", "attempt_count":Integer, "invocation_status": "status", "target_duration_ms":Integer, "target_response_body": "string" } -
- dropped_fields
-
A list of any data fields EventBridge has truncated to keep the record below the 1 MB size limitation.
EventBridge does not include this field if it has truncated any detail fields.
For more information, see Truncating data in event bus logs.
- error
-
Contains information for any error generated during this step. For errors, EV always includes the following fields:
-
error_message -
aws_service
And the following fields if available:
-
request_id -
http_status_code
If no error was generated during this step, EventBridge does not include this field in the log record.
- http_status_code
-
The HTTP status code returned by the called service.
- error_message
The error message returned by the called service.
- aws_service
The name of the service called.
- request_id
The request ID for this request from the called service.
-