# How to get robot logs

**URL:** <https://forum.universal-robots.com/t/how-to-get-robot-logs/3475>\
**Category:** URScript\
**Created:** [January 18, 2019, 8:42am UTC](https://forum.universal-robots.com/t/how-to-get-robot-logs/3475 "2019-01-18T08:42:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon61872178](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@anon61872178](https://forum.universal-robots.com/u/anon61872178)\
**Post date:** [January 18, 2019, 8:42am UTC](https://forum.universal-robots.com/t/how-to-get-robot-logs/3475/1 "2019-01-18T08:42:01Z")

</div>

In our installation we’d like to store robot logs (the ones visible on teach pendant) somewhere on persistent storage, so that we can debug problem long after they happened. I’ve noticed that on the control PC there is a file called “log\_history.txt”, but it seems it’s flushed very rarely and it might not be updated for a long time. This makes it difficult to see, as we might not know at which point we will have logs for the timestamp we are interested in. Is there a better mechanism to store such logs? Maybe some API? Or configuration which would cause to flush in more predictable way?

---

<div class="post-metadata">

**Author:** ![anon99285514](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@anon99285514](https://forum.universal-robots.com/u/anon99285514)\
**Post date:** [October 1, 2019, 11:34am UTC](https://forum.universal-robots.com/t/how-to-get-robot-logs/3475/2 "2019-10-01T11:34:50Z")

</div>

Hi fpg,  
I have excacly same need. Maybe this topic will be good attempt:

> [@Get log file or error codes in real time](https://forum.universal-robots.com/t/is-there-a-way-to-get-the-error-code-information-of-the-robot-in-real-time-or-get-the-log-file-in-real-time/3488/4):
>
> Yes, at a minimum I would decode those. You may also want to decode the Runtime Exception Packet, message packet 20, type 10. Matt

I will try and return with feedback soon.  
BR,

---

<div class="post-metadata">

**Author:** ![anon44705757](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@anon44705757](https://forum.universal-robots.com/u/anon44705757)\
**Post date:** [October 31, 2019, 11:53pm UTC](https://forum.universal-robots.com/t/how-to-get-robot-logs/3475/3 "2019-10-31T23:53:14Z")

</div>

Hi both. We have just developed a tool for reading logs and show all information in a dashboard. It makes thing easy. I would like to show you the tool we are launching.  
[jalonso@analytics40.com](mailto:jalonso@analytics40.com) +34605357710

BR
