Skip to content

9.0 Logging

Gurdeep Singh (Guru) edited this page Aug 14, 2024 · 1 revision

Logging

Logging is enabled by default for 2 things:

  1. Logging filters related events like, filter add, filter update, filter remove, filter move.
  2. If there was an IP that was blocked by a filter, we log the IP and the filter associated with that block.

Additionally, you can enable logging for Allowed IPs for troubleshooting purposes.

Logging Methods

Logging methods are accessible via properties:

//Filter logger
$this->filterLogger

//System logger
$this->systemLogger

Logging Location

Log files are stored in firewalldata/logs/ folder. There are 2 log files that will be generated in there. We are using log rotation handler of monolog, which basically rotates logs everyday.

  • System messages are in system-{date}.log
  • Filter messages are in filter-{date}.log