R
RunPod8mo ago
0xkailex

Collecting logs using API

Hi! Is it possible to grab serverless logs using API? I see on the web site it's using hapi endpoint. But not sure it's easily possible to do it directly somehow (didn't find in the documentation). I only see it from dashboard which is not so good in terms of gathering this into single logs cluster on our main infrastructure.
4 Replies
Jason
Jason8mo ago
Inspect the web network requests if you want
0xkailex
0xkailexOP8mo ago
Can I use it? It's kind of unofficial API? Which works with JWT token rather than API token
Encyrption
Encyrption8mo ago
I asked similar question recently and the answer was that no such API exists. It only exists as a private internal endpoint that RunPod does not share. It was indicated that they may update the official API at some point in the future to include the ability to pull logs. What I am using instead is
runpod.serverless.progress_update(job, {'POD_ID': POD_ID, 'log': file_content})
runpod.serverless.progress_update(job, {'POD_ID': POD_ID, 'log': file_content})
This value can be checked by running the status endpoint.
Jason
Jason8mo ago
Ah

Did you find this page helpful?