read_postgresql_logs
Read the tail of a PostgreSQL database's current JSON/CSV logs to get sanitized event summaries for safe troubleshooting, without exposing paths or raw log messages.
Instructions
读取精确database的PostgreSQL当前JSON/CSV日志尾部;仅安全事件摘要,不接收路径或返回SQL/原始消息。
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": {
"connection": "<connection>",
"database": "<database>"
},
"name": "read_postgresql_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| since | No | ||
| levels | No | ||
| database | Yes | 通过list_databases发现的精确PostgreSQL数据库名;不得猜测或传地址。 | |
| max_bytes | No | ||
| connection | Yes | DBeaver中已有PostgreSQL连接的显示名称或连接ID;不得传地址、账号或密码。 |