monit
monit copied to clipboard
Log to journald
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
I have also tried creating a symlink from /var/log/monit.log to /dev/stdout, still no logs showing in journald