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
![](https://secure.gravatar.com/avatar/d919a6f84bb1b92ff78e2da0810a844d?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
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