How do I find the query ID for a search query so I can troubleshoot issues in Amazon Kendra?

2 minute read
0

I'm troubleshooting an issue in Amazon Kendra and I need the query ID for a search query to continue my investigation.

Resolution

To troubleshoot issues with an Amazon Kendra search query, you need to find the query ID.

Important: An Amazon Kendra index with a data source must exist to find a query ID. For more information about the prerequisites and AWS Identity and Access Management (IAM) permissions for creating an Amazon Kendra index and data source, see Prerequisites.

Administrative users and users with an IAM role to create and manage resources

Administrative users and users with an IAM role to create and manage resources can get a query ID in the Amazon Kendra Search console.

To find the query ID, complete the following steps:

  1. Open the Amazon Kendra console.
  2. In the navigation pane, choose Indexes, and then select the index that you want to troubleshoot.
  3. In the index's navigation pane, choose Search indexed content to open the Amazon Kendra Search console.
  4. Enter your search string to search the Amazon Kendra index and return results.
  5. In the right panel, choose the light bulb icon see the Query Details. The details include the query ID, index ID, and query time.

All Amazon Kendra users

Any Amazon Kendra user can find the query ID in an existing Amazon Kendra search experience.

To find the query ID, complete the following steps:

  1. On your search page, enter your search string to search the Amazon Kendra index and return results.
  2. Open your web browser's inspection developer tool panel, choose the Network tab, and then search for a request that meets the following requirements:
    • Method: POST
    • Domain: kendra.<region>.amazonaws.com
      Note: Replace <region> with the AWS Region of your Amazon Kendra domain.
    • File: /
    • Initiator: vendor.js...
    • Type: x-amz-json-1.1
  3. Select the request, and then choose the Response tab on the right side of the developer tool panel.
  4. The query ID for the search query appears as the QueryId in the response information provided.

Related information

Query responses and response types

AWS OFFICIAL
AWS OFFICIALUpdated 10 months ago