Recommended method
CloudWatch Log Forwarder — enable logging on each state machine with a destination Log Group, and the Bronto forwarder Lambda subscribes to it.- Choose a log level:
ALL,ERROR,FATAL, orOFF.ERRORcaptures failures, timeouts, and aborts;ALLcaptures every state transition. - Turn on Include execution data if you want input and output payloads in the logs.
- Name the log group with the
/aws/vendedlogs/states/prefix. This avoids the CloudWatch Logs 5,120-character resource-policy limit when you enable logging on many state machines.
Alternatives
- EventBridge API Destinations — for execution status-change events (
detail-typeStep Functions Execution Status Change,sourceaws.states), such as started, succeeded, failed, timed out, and aborted, when full step-by-step detail isn’t required.
