aom__ListLogItems
Queries paginated log content across clusters, IPs, applications, namespaces, pods, or files to retrieve relevant entries within a specified time range.
Instructions
[AOM] 该接口用于查询不同维度(例如集群、IP、应用等)下的日志内容,支持分页查询。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category": "<category>",
"endTime": "<endTime>",
"project_id": "<project_id>",
"searchKey": "<searchKey>",
"startTime": "<startTime>",
"type": "<type>"
},
"name": "aom__ListLogItems"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | 表示此次查询为分页查询,第一次查询时不需要此参数,后续分页查询时需要使用。 | |
| isDesc | No | 标识按照lineNum升序查询还是降序查询。 | |
| endTime | Yes | 搜索结束时间(UTC时间,毫秒级)。 | |
| keyWord | No | 1.支持关键词精确搜索。关键词指相邻两个分词符之间的单词。 | |
| lineNum | No | 日志单行序列号第一次查询时不需要此参数,后续分页查询时需要使用可从上次查询的返回信息中获取. | |
| category | Yes | 取值范围 app_log,node _log,custom_log 日志类型字段:app_log:应用日志 node_log:主机日志 custom_log:自定义配置路径日志。 | |
| searchKey | Yes | 日志过滤条件集合,不同日志来源所需字段不同。 | |
| startTime | Yes | 搜索起始时间(UTC时间,毫秒级)。 | |
| hideSyslog | No | 取值范围 0、1 。搜索时是否隐藏系统日志,默认0为隐藏1为显示。 | |
| project_id | Yes | 租户从IAM申请到的projectid,一般为32位字符串。 | |
| pageSize/size | No | 表示每次查询的日志条数不填时默认为5000,建议您设置为100。 |