get_system_logs
Fetch recent Linux system logs from journalctl, filtering by unit, priority, or line count to troubleshoot system issues.
Instructions
Get recent system logs from journalctl (Linux only)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_system_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Filter by systemd unit (e.g., 'docker', 'nginx') | |
| lines | No | Number of log lines to return (default: 50) | |
| priority | No | Minimum log priority level |