Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nomad logs #36

Open
aaron0428 opened this issue Aug 5, 2017 · 4 comments
Open

nomad logs #36

aaron0428 opened this issue Aug 5, 2017 · 4 comments

Comments

@aaron0428
Copy link

HI:
could you tell me ,how can i get the nomad job logs when i use python-namd(like the command:"nomad logs taskid")
thank you very much!!!

@jonathanrcross
Copy link
Collaborator

Hey @aaron0428, what version of nomad are you using? It looks like the ls/cat endpoints have changed a bit in newer releases the client.py was originally written nomad 0.3.2 in mind and is also the least tested area ( which should be a good reason to change this ).

@aaron0428
Copy link
Author

@jonathanrcross
Hey,
My nomad version is 0.5.6。

@aaron0428
Copy link
Author

@jonathanrcross
when i use python-nomad,i can not to get the nomad job log!

@muman613
Copy link

I am kind of new to the Nomad Python library but have not been able to figure out how to get the logs for an allocation. I have been able to connect to the client, get a list of jobs and iterate through them, get all allocations for each job, but have not been able to get the allocation logs. It is the goal of the utility I am writing to extract these logs and save them locally.

Please update the issue with a link or a pointer as to how to get the allocation logs from the allocation.

Thank you.

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

No branches or pull requests

3 participants