get_log_file
Retrieve the newest lines from pfSense log files (dhcpd, filter, resolver, system, auth) with an optional grep filter. Provides recent log data for troubleshooting, including logs not exposed by the REST API.
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.
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 | |||