obs_log_query
Query logs from Loki for AWS or CN regions using LogQL expressions. Select a time range or specify custom times to retrieve matching log entries.
Instructions
查询日志(Loki)。
区分两套平台:region=aws 查 AWS 海外(jp-saas-1),region=cn 查国内公有云。 国内非 prod 已切换至 Loki 风格,地址 logs.going-link.net。 query 为 LogQL 表达式,如 '{app="srm-gateway"} |= "403"'。 time_range 支持 30m/2h/1d/today/yesterday 或 "YYYY-MM-DD HH:mm~HH:mm"(北京时间)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | Yes | ||
| limit | No | ||
| query | Yes | ||
| region | Yes | ||
| to_time | No | ||
| direction | No | BACKWARD | |
| from_time | No | ||
| time_range | No | 2h |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |