marathon icon indicating copy to clipboard operation
marathon copied to clipboard

use log-driver optin while deploying application inorder to redirect logs to journald

Open chaithrar opened this issue 11 years ago • 14 comments

Hi,

We have requirement where we need to redirect logs from marathon deployed applications to go to journald.

docker 1.6 higher support "log-driver" option which pushes logs to journald/json-file Can this option be used in the json files. If its possible can you please share the sample json file

chaithrar avatar Dec 02 '15 17:12 chaithrar

As far as I know it's not possible due to the way mesos handles docker. Please see the following thread for details: https://groups.google.com/d/msg/marathon-framework/kaQ6m35AYjQ/wjj9OHn1_9wJ

orlandohohmeier avatar Dec 02 '15 18:12 orlandohohmeier

I got it worked for latest version of docker 1.6 . But seem slike systed_unit in journald is coming as docker.service. and container name is messos- so there is no way I am able to map the application. Is there any way we can override container name mesos creates?

chaithrar avatar Dec 03 '15 18:12 chaithrar

Thanks for sharing your findings. I'll reach out to the team and get back to you as soon I have an answer.

orlandohohmeier avatar Dec 04 '15 16:12 orlandohohmeier

Any news on this? Would be great to have the log output to debug containers that fail to start!

tspecht avatar Feb 19 '16 11:02 tspecht

+1

ensonik avatar Mar 11 '16 17:03 ensonik

+1

aaaler avatar Mar 16 '16 11:03 aaaler

+1

rahimre avatar May 15 '16 15:05 rahimre

+1

iannickb avatar Jun 24 '16 01:06 iannickb

+1

xissy avatar Aug 15 '16 21:08 xissy

AFAIK there is no way to rename the container that mesos creates (aside from influencing the cgroup root that mesos uses (cgroups_root flag)).

jdef avatar Aug 17 '16 00:08 jdef

I'd like to bump this. I'm tasked with a similar issue and am really interested as to what the solution was.

Matt-Dee avatar Nov 03 '16 12:11 Matt-Dee

+1

thiagoit avatar Nov 30 '16 15:11 thiagoit

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-3143. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.

meichstedt avatar Mar 06 '17 20:03 meichstedt

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-3143. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.

meichstedt avatar Mar 07 '17 12:03 meichstedt