get_firewall_log
Retrieves and filters firewall log entries from pfSense by protocol, interface, source/destination IP, action, or destination port.
Instructions
Get firewall log entries with optional filtering
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 20, max 50) | |
| protocol | No | Filter by protocol (tcp, udp, icmp) | |
| interface | No | Filter by interface (wan, lan, etc.) | |
| source_ip | No | Filter by source IP address | |
| action_filter | No | Filter by action (pass, block, reject) | |
| destination_ip | No | Filter by destination IP address | |
| destination_port | No | Filter by destination port |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||