hss__ListContainerCmdLogs
Queries command execution logs from containers to support auditing and investigation, with filters for host, cluster, container, command, path, and time range.
Instructions
[HSS] 查询容器内运行的命令列表
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": {
"limit": "<limit>",
"offset": "<offset>",
"project_id": "<project_id>"
},
"name": "hss__ListContainerCmdLogs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | No | 运行的命令行 | |
| path | No | 命令行对应的进程路径 | |
| limit | Yes | 每页显示个数,默认为10 | |
| offset | Yes | 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0 | |
| host_id | No | 产生日志的容器所在主机的id | |
| host_ip | No | 产生日志的容器所在主机的ip | |
| end_time | No | 查询日志范围的最大时间 | |
| host_name | No | 产生日志的容器所在主机的名称 | |
| cluster_id | No | 集群id | |
| project_id | Yes | 租户项目ID | |
| start_time | No | 查询日志范围的最小时间 | |
| cluster_name | No | 集群名称 | |
| container_id | No | 容器id | |
| container_name | No | 产生日志的容器名称 | |
| enterprise_project_id | No | 主机所属的企业项目ID。 | 0 |