get_container_logs
Retrieve logs from a specified container on a remote server by providing hostname, username, container details, and optional parameters like log tail or time range for troubleshooting and monitoring.
Instructions
获取指定容器的日志
Input Schema
Name | Required | Description | Default |
---|---|---|---|
container | No | ||
hostname | Yes | ||
password | No | ||
port | No | ||
since | No | ||
tail | No | ||
timeout | No | ||
username | Yes |
Input Schema (JSON Schema)
{
"properties": {
"container": {
"default": "",
"title": "Container",
"type": "string"
},
"hostname": {
"title": "Hostname",
"type": "string"
},
"password": {
"default": "",
"title": "Password",
"type": "string"
},
"port": {
"default": 22,
"title": "Port",
"type": "integer"
},
"since": {
"default": "",
"title": "Since",
"type": "string"
},
"tail": {
"default": 100,
"title": "Tail",
"type": "integer"
},
"timeout": {
"default": 30,
"title": "Timeout",
"type": "integer"
},
"username": {
"title": "Username",
"type": "string"
}
},
"required": [
"hostname",
"username"
],
"title": "get_container_logsArguments",
"type": "object"
}