Question
Where do I find my contact trace records and CloudWatch Logs in Amazon Connect?
Answer
Contact trace records
Amazon Connect creates contact trace records (CTRs) for every inbound, outbound, transfer, and callback interaction. You can retrieve contact trace records in the Amazon Connect console or in Amazon CloudWatch Logs, based on your investigation needs.
Find CTRs with Contact Search in Amazon Connect console:
This option is best for a quick visual review of call details.
- Open the Amazon Connect console
- Go to Analytics and Optimization > Contact Search
- Search by one of these options:
- Contact ID
- Agent
- Queue
- Customer phone number
- Date and time
- Open the contact record to review:
- Call segments
- Metadata
-
Export the contact details or take a screenshot if needed
CloudWatch Logs
Use Amazon CloudWatch Logs for deep technical analysis, especially when a contact flow behaves unexpectedly. An Amazon Web Services (AWS) admin must retrieve these logs from the customer's AWS environment.
- Open the Amazon Web Services (AWS) Management Console
- Go to CloudWatch
- Go to Logs > Logs Insights
- Make sure the Set logging behavior block is on in the relevant contact flows
- In Logs Insights:
- Select the log group name
- Choose the Amazon Connect instance
-
Use this query:
fields @timestamp, @message, ContactFlowModuleType, ContactFlowName | filter ContactId = "your_contact_id" | limit 20
- Replace
your_contact_idwith the relevant Contact ID - Update the date and time filter to match the call time frame
- Run the query
- Export the results as a JavaScript Object Notation (JSON) file
For more information, see Setting up Zendesk for Contact Center.