Journal query
log_queryQuery systemd journal entries by unit, priority, time window, or message text to inspect logs, returning timestamps, priorities, and messages with optional detail.
Instructions
Journal entries filtered by unit, priority, time window or message text. Returns ts, prio and msg only; detailed adds unit, pid and boot.
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": "log_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Case-insensitive substring of the message | |
| unit | No | Only entries from this unit | |
| limit | No | Entries per page | |
| since | No | Start of the window | |
| until | No | End of the window | |
| cursor | No | Cursor from a previous call | |
| detail | No | detailed adds unit, pid and boot id | concise |
| priority | No | Maximum priority (err includes more severe) |