I want to configure monit to alert (email) me when the unbound service restarts.
I have configured monit (via the GUI) and have this resultant configuration (shown from the CLI)
check file resolver.log with path "/var/log/resolver.log"
if match "info: start of service (unbound" then alert
However I don't think I'm looking at the correct log file.
When I look via the GUI (via Services: Unbound DNS: Log File), these are examples of the entries in the unbound log file:
2021-07-18T14:30:15 unbound[34317] [34317:0] info: start of service (unbound 1.13.1).
2021-07-18T14:28:46 unbound[88879] [88879:0] info: service stopped (unbound 1.13.1).
When I look in resolver.log I don't see those entries. I've looked around at other log files and can't find that information anywhere. Any guidance appreciated.