search_logs_by_ip
Search pfSense firewall or system logs for activity tied to a specific IP address, returning the newest matching log lines to help investigate traffic or events.
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 newest raw log lines to search (default 50, max 50); no match does not prove there was no older activity | |
| 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 | |||