search_logs
Search SAP Commerce Cloud runtime logs by environment, time range, level, aspect, or free-text query. Returns newest-first log entries with timestamp, level, and message.
Instructions
Search SAP Commerce Cloud (CCv2) runtime logs in SAP Cloud Logging. Returns newest-first log lines with timestamp, level, aspect, container, logger and message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of time range (ISO date or date math) | now |
| env | Yes | Target environment, e.g. s1 or p2 (must have CCV2_LOGS_HOST_<ENV> configured) | |
| from | No | Start of time range (ISO date or date math like now-1h) | now-1h |
| level | No | Log level filter: ERROR, WARN, INFO or DEBUG | |
| limit | No | Maximum number of log lines to return | |
| query | No | Free-text query (simple_query_string over message and logger name) | |
| aspect | No | Platform aspect filter: accstorefront, backoffice, backgroundProcessing or api | |
| offset | No | Number of matching log lines to skip, for pagination (offset+limit is capped at 10000) |