Logs
OPNexus regularly fetches the firewall logs of all hosts itself and stores them in its own database. Monitoring › Logs searches them server-side: individual hosts, whole clusters or all, free text, filters (action, interface, protocol), time range (last hour/24 hours/7 days/all/custom range) and a statistics panel (distribution by action and interface, most-blocked sources, most frequent destination ports).
Address and port filters. Next to the free text there are fields for source IP, destination IP (one exact address each) and port (matches source or destination port). Every address and port in the table is also a link: a click filters the list by it.
From a log line to the rule. The Rule column links a line to the OPNexus rule that wrote it, when the rule id in the log
line (rid) is a rule OPNexus deployed on that very firewall (a rule of the hierarchy links to the hierarchy page). Lines of rules
OPNsense generates itself, rules made by hand or from before OPNexus show the text the firewall logged, without a link. Nothing is
guessed: the id is compared as it is (ignoring dashes and case) and only on the firewall that logged the line.
Settings › Log collection:
| Setting | Default | Meaning |
|---|---|---|
| Collection active | on | switches fetching on or off |
| Fetch interval | 30 s | minimum 10 s |
| Retention | 7 days | older entries are removed |
| Max. storage | 10 GB | 0 = unlimited; when reached, the oldest entries are deleted |
The storage figure is an estimate from the table size: Postgres does not return deleted space to the file system, but reuses it for new logs. On heavily loaded firewalls even a few days can occupy several GB; set retention and limit accordingly. The timestamps are the firewall's clock time, uncorrected: if the firewall is not set to UTC, time filters are shifted by that offset.