logging configuration as per docs is not working

Issue #638 closed
reddygudi created an issue

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.

Comments (1)

  1. Tildeslash repo owner

    Both set log /path and set logfile /path works with the latest 5.23.0 version. The new set log /path statement was added in version 5.22.0. If you get a syntax error it suggest that you are running an older version of Monit. Use monit --version to see which version. I understand the frustration and I've added a note that set logfile is deprecated now.

  2. Log in to comment