Get Service Logs
get_service_logsRetrieve journal logs for a specified system service or unit, filtered by time, priority, line count, or user scope to diagnose issues and inspect recent activity.
Instructions
Journal logs for one unit.
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": {
"name": "<name>"
},
"name": "get_service_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| user | No | ||
| lines | No | ||
| since | No | e.g. '1 hour ago', 'today', '2024-06-01 12:00' | |
| priority | No | emerg|alert|crit|err|warning|notice|info|debug |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |