add support for syslog output
It's a pain to deal with many scattered logfiles, so syslog support would be a welcome alternative.
The only extra configuration despite enabling, and the loglevel should be the syslog facility.
https://github.com/mattermost/platform/issues/1820
-
John Sellens commented
I like syslog too - but I got the results I wanted without much trouble, so I thought I would share.
I run mattermost on centos 7, using systemd, which syslogs by default. In the service definition file I added
SyslogIdentifier=mattermost
StandardOutput=syslog
StandardError=syslog(otherwise it syslog'd as "platform"), and then I turned off file logging in the web interface, so my config.json now has
"EnableFile": false,
in the "LogSettings" section.
Otherwise, I imagine that leaving mattermost logging to "console" and wrapping it with a script that pipes output to logger might do the trick e.g.
platform 2>&1 | logger -t mattermost
Hope that helps - cheers!
John