get_log_file
Read the newest lines from pfSense log files using server-side tail and optional grep to inspect resolver and other logs not exposed by REST API endpoints.
Instructions
Read the newest lines from a pfSense log file (dhcpd, filter, resolver, system, auth).
Reads the plain-text log file server-side with tail (and grep when a pattern is given), so it works for log types the REST API log endpoints don't expose (notably resolver) and avoids the known server-side OOM bug on /status/logs/ endpoints.
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": {
"log_file": "<log_file>"
},
"name": "get_log_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Optional fixed-string filter applied before tail, so the newest matching lines are returned rather than matches within the newest lines | |
| lines | No | Number of newest lines to return (default 100, max 1000) | |
| log_file | Yes | Which log to read (dhcpd, filter, resolver, system, auth) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||