Logs

更新时间:
复制 MD 格式

Use the Logs feature to search and filter query and write logs for an OpenSearch Vector Search Edition instance. Query logs record each search request and help troubleshoot slow queries. Write logs record write operations and help troubleshoot write failures or latency issues.

Query logs

  1. On the details page of an OpenSearch Vector Search Edition instance, choose Logs > Query Logs in the left-side navigation pane.

  2. On the Log Query tab, specify the query conditions and click Search.

Write logs

  1. On the details page of an OpenSearch Vector Search Edition instance, choose Logs > Query Logs in the left-side navigation pane.

  2. Click the Write Logs tab, specify the query conditions, and click Search.

Log fields

Each log entry contains the following fields.

FieldDescriptionFilterableMatch behavior
hostThe host that processed the requestYesContains match
request_idThe unique identifier of the requestYesContains match
request_time_usecThe time taken to process the request, in microsecondsYesGreater-than match
request_uriThe URI of the requestYesContains match
request_bodyThe body of the requestNo
statusThe status code of the responseYesContains match

The Time column displays timestamps in ISO 8601 format.

To filter logs without specifying a filter condition and time range, click host in the Content column. The text turns blue with an underscore when you hover over it, indicating it is clickable.

For query string syntax, see the Query string syntax section of the Query String Query documentation.

Limitations

  • A maximum of 10,000 logs that match the specified query conditions can be displayed.

  • Only logs within the last 3 days can be queried.

  • The default time range is the 24 hours prior to the current time.