As per documentation, for configuring logging to a file, I am seeing the docs suggesting following config,
set log /var/log/monit.log
That is giving syntax errors on the configuration file.
After looking here , I realized that I should use logfile instead of log
It would have been helpful if the latest docs suggest the same thing.