search_logs_by_ip
Search pfSense logs for entries related to a specific IP address. Filter by log type and control the number of lines returned to quickly identify relevant activity.
Instructions
Search logs for activity related to a specific IP address
WARNING (tracked by upstream PR #860): this endpoint may fail on firewalls with large log files due to a known pfSense REST API bug (server-side OOM at the 512 MB PHP limit). If it fails, suggest reviewing logs via SSH or the pfSense web UI instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of log lines to retrieve (default 50, max 50) | |
| log_type | No | Type of logs to search (firewall, system, etc.) | firewall |
| ip_address | Yes | IP address to search for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||