monit icon indicating copy to clipboard operation
monit copied to clipboard

Log to journald

Open haydenseitz opened this issue 3 years ago • 1 comments

I am trying to configure the monit service to log to journald instead of the default /var/log/monit.log. I have tried setting set log /dev/log and set log /dev/stdout, but no luck 😞

References:

  • https://stackoverflow.com/questions/35832295/how-to-send-logs-to-journalctl-when-default-is-sent-to-syslog
  • https://serverfault.com/questions/727944/how-can-i-get-haproxy-to-log-to-systemd-journald
  • https://stackoverflow.com/questions/62988870/docker-send-internal-cerbot-log-file-to-host-journald

haydenseitz avatar Jun 09 '22 21:06 haydenseitz

I have also tried creating a symlink from /var/log/monit.log to /dev/stdout, still no logs showing in journald

haydenseitz avatar Jun 09 '22 21:06 haydenseitz