Re: manage jobs log files in sandboxes

2015-11-06 Thread Paul Bell
I've done a little reconnoitering, and the terrain looks to me as follows: 1. Docker maintains container log files at /var/lib/docker/containers//-json.log 2. Mesos maintains container STDOUT files at a slave/framework/application specific location, e.g.,

Re: manage jobs log files in sandboxes

2015-11-06 Thread Kamil Chmielewski
Try to cantact with https://github.com/eirslett He can have a PoC from MesosCon Europe hackathon with Mesos writting containers logs to Logstash. Cheers, Kamil 2015-11-06 15:26 GMT+01:00 Paul Bell : > I've done a little reconnoitering, and the terrain looks to me as follows:

Re: manage jobs log files in sandboxes

2015-11-06 Thread Kamil Chmielewski
see https://github.com/eirslett/mesos/commit/7eac3da95fdd39a0fb96b8d8a883e72b6b9f9943 2015-11-06 15:34 GMT+01:00 Kamil Chmielewski : > Try to cantact with https://github.com/eirslett > He can have a PoC from MesosCon Europe hackathon with Mesos writting > containers logs to

Re: manage jobs log files in sandboxes

2015-11-06 Thread Paul Bell
Hi Mauricio, YeahI see your point; thank you. My approach would be akin to closing the barn door after the horse got out. Both Mesos & Docker are doing their own writing of STDOUT. Docker's rotation won't address Mesos's behavior. I need to find a solution here. -Paul On Thu, Nov 5, 2015

Re: manage jobs log files in sandboxes

2015-11-05 Thread Paul
Hi Mauricio, I'm grappling with the same issue. I'm not yet sure if it represents a viable solution, but I plan to look at Docker's log rotation facility. It was introduced in Docker 1.8. If you beat me to it & it looks like a solution, please let us know! Thanks. Cordially, Paul > On Nov

Re: manage jobs log files in sandboxes

2015-11-05 Thread Mauricio Garavaglia
Hi Paul, I don't think that's going to help :( Even if you configure a different docker log driver, Docker still send things to stdout, which is catched by mesos and dumped in the .logs directory in the job sandbox. For example, by default docker logs into a json file in /var/lib/docker but mesos

Re: manage jobs log files in sandboxes

2015-11-05 Thread haosdent
I think maybe could try something like logstash/heka to collect containers logs. Or use sentry as log library directly. So that could easily fetch and analyze them in a web interface. On Fri, Nov 6, 2015 at 10:40 AM, Mauricio Garavaglia < mauriciogaravag...@gmail.com> wrote: > Hi guys, > > How