jrxFive / python-nomad

Client library Hashicorp Nomad
https://python-nomad.readthedocs.io/en/latest/
MIT License
140 stars 74 forks source link

nomad logs #36

Open aaron0428 opened 7 years ago

aaron0428 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

@jonathanrcross
Hey, My nomad version is 0.5.6。

aaron0428 commented 7 years ago

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

muman613 commented 5 years ago

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.