use log-driver optin while deploying application inorder to redirect logs to journald
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
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
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-
Thanks for sharing your findings. I'll reach out to the team and get back to you as soon I have an answer.
Any news on this? Would be great to have the log output to debug containers that fail to start!
+1
+1
+1
+1
+1
AFAIK there is no way to rename the container that mesos creates (aside from influencing the cgroup root that mesos uses (cgroups_root flag)).
I'd like to bump this. I'm tasked with a similar issue and am really interested as to what the solution was.
+1
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.
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.