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
On the details page of an OpenSearch Vector Search Edition instance, choose Logs > Query Logs in the left-side navigation pane.
On the Log Query tab, specify the query conditions and click Search.
Write logs
On the details page of an OpenSearch Vector Search Edition instance, choose Logs > Query Logs in the left-side navigation pane.
Click the Write Logs tab, specify the query conditions, and click Search.
Log fields
Each log entry contains the following fields.
| Field | Description | Filterable | Match behavior |
|---|---|---|---|
host | The host that processed the request | Yes | Contains match |
request_id | The unique identifier of the request | Yes | Contains match |
request_time_usec | The time taken to process the request, in microseconds | Yes | Greater-than match |
request_uri | The URI of the request | Yes | Contains match |
request_body | The body of the request | No | — |
status | The status code of the response | Yes | Contains 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.