- changed status to closed
logging configuration as per docs is not working
Issue #638
closed
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)
-
repo owner - Log in to comment
Both
set log /path
andset logfile /path
works with the latest 5.23.0 version. The newset 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. Usemonit --version
to see which version. I understand the frustration and I've added a note thatset logfile
is deprecated now.