Skip to content

Amazon Q Business Plugin

0

How to debug Amazon Q plugin.

I enabled the log with cloudwatch but there is nothing, I only see :

{ "application_id": "6c9b9c3a-65ae-4dd0-b564-80606526ba2f", "event_timestamp": "2025-02-25T19:29:36Z", "log_type": "Message", "account_id": "908027404414", "conversation_id": "549694e0-fa5e-4ec0-b503-04e464b03b4b", "system_message_id": "94bef3fa-5afa-4c12-90d2-ef5e3b0bdc53", "user_message_id": "48a1c32c-074f-49d1-8d7b-f4407aecf477", "user_message": "what is google", "system_message": "Requesting Action review for plugin", "output_metrics_is_message_blocked": false, "output_metrics_is_message_with_no_answer": true, "timestamp": "1740511783021", "user_email": "email" }

{ "application_id": "6c9b9c3a-65ae-4dd0-b564-80606526ba2f", "event_timestamp": "2025-02-25T19:29:43Z", "log_type": "Message", "account_id": "908027404414", "conversation_id": "549694e0-fa5e-4ec0-b503-04e464b03b4b", "system_message_id": "0179589d-5f2e-45ff-9a50-2d3f46169e35", "user_message_id": "53921964-d2f8-4713-ac9f-3c42db7895f2", "user_message": "Create a Request", "system_message": "I apologize, but I'm currently experiencing some technical difficulties that are preventing me from accessing the information about google. This is preventing me from providing you with an accurate and helpful response at the moment. Could you please try asking your question again in a little while? In the meantime, is there anything else I can assist you with?", "output_metrics_is_message_blocked": false, "output_metrics_is_message_with_no_answer": false, "timestamp": "1740511784894", "user_email": "email" }

asked 2 years ago342 views

1 Answer
0

To debug the Amazon Q Business plugin when you're not seeing the expected logs in CloudWatch, there are several steps you can take:

  1. Check permissions: Ensure that the IAM role associated with your Amazon Q Business application has the correct permissions to write logs to CloudWatch. The role should have permissions for actions like cloudwatch:PutMetricData, logs:DescribeLogGroups, logs:CreateLogGroup, logs:DescribeLogStreams, logs:CreateLogStream, and logs:PutLogEvents.

  2. Verify log group: Make sure you're looking in the correct log group. Amazon Q Business logs are typically stored in a log group with a path like "/aws/qbusiness/*".

  3. Check sync status: If you're using data connectors, verify that the data connector's sync run is successful and on schedule. You can check the sync history in the Amazon Q Business application.

  4. Review ACLs: Ensure that the Access Control Lists (ACLs) applied to your account allow you to query the necessary data sources. You can view the ACL list and other useful information by checking the sync history report.

  5. Connectivity issues: If you're having trouble accessing the logs, verify that your security groups, network ACLs, and VPC endpoints (if used) are correctly configured to allow connectivity.

  6. Check for errors: Look for any error messages or indications of failed operations in the logs you do see. The logs you provided show that there were some messages, but they indicate that the system couldn't provide an answer ("is_message_with_no_answer": true).

  7. Support case: If you've checked all of the above and are still having issues, consider opening a support case with AWS and working with your technical account manager to resolve the problem.

Remember that the logs you're seeing might be indicating that the plugin is working as expected, but it's unable to find relevant information to answer the queries. This could be due to the plugin not having access to the necessary data sources or the queries being outside the scope of what the plugin can answer.

If you continue to experience issues, it's best to contact AWS support for more detailed troubleshooting specific to your setup.
Sources
Discover insights from your Amazon Aurora PostgreSQL database using the Amazon Q Business connector | AWS Machine Learning Blog
Resolve empty log issues in CloudWatch | AWS re:Post
IAM role for an Amazon Q Business application - Amazon Q Business

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.