Skip to content
This repository has been archived by the owner on Jun 22, 2018. It is now read-only.

Add "minimesos logs" command #191

Open
frankscholten opened this issue Jan 10, 2016 · 1 comment
Open

Add "minimesos logs" command #191

frankscholten opened this issue Jan 10, 2016 · 1 comment
Labels

Comments

@frankscholten
Copy link
Contributor

Checking executor logs is time consuming because we have to determine the slave, enter the docker container, find the correct file and then read it.

Imagine we have launched Kafka and it keeps failing and restarting. We have a bunch FAILED tasks and log directories in the sandbox. The tasks have IDs look like this:

kafka-mesos-scheduler.708e9047-b73c-11e5-a399-0242ac110005

where the part after the dot keeps changing for every new task.

Let's add a minimesos logs command that accepts part of a task ID like this:

$ minimesos logs kafka-mesos
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0110 01:47:18.050611 25438 process.cpp:995] libprocess is initialized on 172.17.0.6:41803 for 8 cpus
I0110 01:47:18.051002 25438 logging.cpp:172] INFO level logging started!
I0110 01:47:18.051314 25438 logging.cpp:177] Logging to /var/log
I0110 01:47:18.052146 25438 exec.cpp:134] Version: 0.25.0
I0110 01:47:18.053340 25441 exec.cpp:184] Executor started at: executor(1)@172.17.0.6:41803 with pid 25438
--- Snip ---

Perhaps it should log stdout by default and stderr when adding a --stderr flag or vice versa.

@frankscholten frankscholten modified the milestone: 0.7.0 Jan 15, 2016
@sadovnikov sadovnikov modified the milestones: 0.7.0, 0.8.0 Feb 15, 2016
@frankscholten frankscholten modified the milestones: 0.8.0, Backlog Mar 1, 2016
@frankscholten frankscholten modified the milestone: 0.9.0 - Weave net service discovery Apr 13, 2016
@frankscholten frankscholten removed this from the 0.10.0 - Weave net service discovery milestone May 9, 2016
@frankscholten frankscholten reopened this Mar 10, 2017
@riccardomc
Copy link
Contributor

Hello! I implemented this in pull request #544. Please let me know what do you think! 😊

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants