[ 
https://issues.apache.org/jira/browse/MESOS-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13785411#comment-13785411
 ] 

Jason Dusek commented on MESOS-588:
-----------------------------------

This sounds like a good way forward. I think in practice it will be important 
to allow logging to both files and syslog simultaneously, so the sandbox links 
in the web UI still allow you to examine the logs.

Would this be something we could enable per slave, with `--syslog'? That would 
be an easy way to meet the common need to log everything.

Selecting the syslog tag -- the label under which the logging occurs -- is 
tricky. For example, if I run `sleep' without an argument, which will cause it 
to print an error, it would be nice if the logs showed `sleep' as the command:

  2013-02-27T14:14:16.123Z 01.web.example.com user.notice sleep[2345]: usage: 
sleep seconds

instead of logging with the PID and process name of the Mesos slave (or 
executor instance):

  2013-02-27T14:14:16.123Z 01.web.example.com user.notice mesos-slave[616]: 
usage: sleep seconds


> Add option to master to send stdout and stderr to syslog
> --------------------------------------------------------
>
>                 Key: MESOS-588
>                 URL: https://issues.apache.org/jira/browse/MESOS-588
>             Project: Mesos
>          Issue Type: Story
>          Components: master
>            Reporter: Jason Dusek
>   Original Estimate: 49h 7m
>  Remaining Estimate: 49h 7m
>
> Sending worker logs to Syslog simplifies implementation of retention policies 
> and makes it easier for teams to devise their own approach to log indexing 
> and authorized use of logs (since many of these solutions exist for Syslog 
> already).
> In Bash, we can write a wrapper that uses redirection and process 
> substitution to ensure a command invocation's STDOUT and STDERR are written 
> to syslog.
> https://gist.github.com/solidsnack/6090947
> It would be nice if Mesos offered such a facility, or provided a way to 
> plugin a wrapper script like the one above.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to