Search Logs
search_logsSearch journal logs by pattern to find recent service errors or events. Filter by a specific unit and get the last 200 matching lines.
Instructions
Search journal logs for a pattern (grep -i). Optional unit filter. Returns last 200 matching lines.
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": {
"pattern": "<pattern>"
},
"name": "search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Limit to this service unit | |
| pattern | Yes | Search pattern (case-insensitive) |