How do I use api to retrieve logs? (Python)

Hello All,

I am trying to use the api via Python in order to get my logs for he robots(cloud based), I have already been able to authenticate, start jobs and get jobs using the api but I’m struggling to understand the documentation for retrieving logs, if anyone could give me an example of the url to request I would appreciate it, or could you confirm the below if this would work?

https://platform.uipath.com/accLogical/tenantName/odata/RobotLogs

Regards,
Sam Hedgecock

Hello, but what is the problem? are not getting any log messages? First thing is to understand that logs have a lot of different scopes, second go in your orchestrator, go to the robot where you want to get the logs and see if there are any.

Hello,
I essentially want to know if it is possible to retrieve the error logs file path or if possible the file itself using the api call but currently I dont know what call is needed to see what RobotLogs returns, and even in the documentation it doesn’t clearly explain this.

Regards,
Sam Hedgecock

For sure not a log file, and also dont think “error” logs… what comes from this is log in general that are written but the processes or orchestrator…

Apologies old habit calling them Error Logs, but yes I am after the Logs info( filepath, creation date etc.) or anything of the sort that can be returned via an API call; also after how to make this call. Hope this clarifies it a bit.

Regards,
Sam Hedgecock

1 Like

Just wanting to bump to see if anyone has an example of how they used get logs using the api (preferably python or postman example)

Regards,
Sam Hedgecock

you can find reference of it here:
https://docs.uipath.com/orchestrator/reference#section-retrieving-robot-logs-according-to-the-robot-name

2 Likes

@bcorrea Thank you very much! Couldn’t find this before

Regards,
Sam Hedgecock

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.