This topic describes how to download logs.
Access paths
You can access the Log Search page from the following paths and specify the search criteria to download required logs:
On the Overview page of a cluster, hover over the more icon in the upper-right corner and select Download Logs from the drop-down list.
On the Overview page of an OBProxy cluster, hover over the more icon in the upper right corner and select Download All Logs from the drop-down list.
On the host details page, click Download Logs .
On the Log Query page of Log Service, click Download Logs .
Specify the time range
You can select 5 Minute, 10 Minutes, 15 Minutes, 30 Minutes, 1 Hour, 3 Hour, 6 Hour, or 12 Hour, which is the time interval from the current time, or specify a time range, to download logs generated within the specified time range.

Specify the object scope
You can view the logs of a host, an OceanBase cluster, or an OBProxy cluster.

Log types
The following table describes the log types.
| Log type | Description |
|---|---|
| OBServer Logs | All logs in the /log/ directory of the installation path. The log clearing strategy is determined by the value you specified for the ocp.agent.ob-cleaner.config parameter:
|
| OBProxy Logs | All logs in the /home/admin/logs/obproxy/log/ directory. |
| Host Logs | All message- files in the /var/log directory. |
| OCP Agent Logs | All logs in the /home/admin/ocp_agent/log/ directory. |
Keyword
You can select a keyword from the drop-down list or enter a keyword in the search box for case-insensitive exact match. This operation is optional.
- Including keywords: Logs containing this keyword will be filtered out during log search. Support regular matching and common matching for multiple keywords.
- Excluding keywords: Log search will filter logs containing this keyword. Multiple keywords can be excluded.

Log levels
You can select an alert level from the drop-down list. Four alert levels are available: ERROE, WARN, INFO, and DEBUG. This operation is optional.
