All Products
Search
Document Center

OpenSearch:Logs

Last Updated:Sep 04, 2024

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 to search for the logs that meet the specified conditions.

Write logs

On the details page of an OpenSearch Vector Search Edition instance, choose Logs > Query Logs. On the page that appears, click the Write Logs tab. On this tab, specify the query conditions and click Search to search for the logs that meet the specified conditions.

Usage notes

1. If you do not specify the filter condition and time range, you can click host in the Content column of a log to specify a filter statement. When you move the pointer over the host, the text is displayed in blue with an underscore.

2. The following list describes the detailed information displayed in logs or the filter conditions that you can specify:

  • Time: The time is in the ISO 8601 standard.

  • Content: host, request_id, request_time_usec, request_uri, request_body, and status.

a. The preceding items except for request_body can be used as the filter conditions.

b. After you specify a value for host, request_uri, request_id, or status, the system queries logs that contain the specified value.

c. After you specify a value for request_time_usec, the system queries logs whose values of request_time_usec are greater than the specified value.

3. For more information about query conditions, see the "Query string syntax" section of Query String Query.

Usage notes

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

  • Only logs within three days can be queried.

  • The default value of the time range is 24 hours earlier than the current point in time.