Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Multiplexing into syslog #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Multiplexing into syslog #46

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Aug 7, 2015

Re-submitting fix for multiplexing mesos-slave and mesos-master console output into syslog.
The patch multiplexes all log messages with [IWEF] prefix into appropriate syslog priorities.
Now it also correctly forwards error messages with no prefix into crit syslog priority.

Mesos master and slave daemon attempt to multiplex stdout and stderr into info
and crit syslog severities, but it does not work properly and forwards all log
output into err severity only.

Use first character of each log message to distinguish its severity and multiplex
them into appropriate syslog severities. This fixes #15.

The multiplexing also removes timestamp from log message as syslog would add its
own and having two timestamps would make logs unreadable.
Mesos binaries calls EXIT(1) with message when encountering critical error.
Error conditions logged by EXIT call do not go into default log files in
/var/log/mesos at all. When binary runs as daemon, they may get lost completely.

Enhance log multiplexing to match all messages that do not conform to logging
pattern and forward them to syslog as critical errors.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant