# Get log file or error codes in real time

**URL:** <https://forum.universal-robots.com/t/get-log-file-or-error-codes-in-real-time/3488>\
**Category:** Technical Questions\
**Tags:** error-code, client-interfaces\
**Created:** [January 21, 2019, 9:28am UTC](https://forum.universal-robots.com/t/get-log-file-or-error-codes-in-real-time/3488 "2019-01-21T09:28:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon70167123](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@anon70167123](https://forum.universal-robots.com/u/anon70167123)\
**Post date:** [January 21, 2019, 9:28am UTC](https://forum.universal-robots.com/t/get-log-file-or-error-codes-in-real-time/3488/1 "2019-01-21T09:28:04Z")

</div>

Is there a way to get the error code information of the robot in real time or get the log file in real time? our goal is to get the real-time error code to fix the robot’s error through the dashboard.

---

<div class="post-metadata">

**Author:** ![mbush](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/mbush/32/76_2.png) [@mbush](https://forum.universal-robots.com/u/mbush)\
**Post date:** [January 21, 2019, 4:14pm UTC](https://forum.universal-robots.com/t/get-log-file-or-error-codes-in-real-time/3488/2 "2019-01-21T16:14:39Z")

</div>

The log file is streaming on 30001. You would just need to decode it.

---

<div class="post-metadata">

**Author:** ![anon70167123](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@anon70167123](https://forum.universal-robots.com/u/anon70167123)\
**Post date:** [January 22, 2019, 1:04am UTC](https://forum.universal-robots.com/t/get-log-file-or-error-codes-in-real-time/3488/3 "2019-01-22T01:04:41Z")

</div>

thank you very much，I still want to know：Are you referring to the sub-package SafetyModeMessage and the sub-package RobotCommMessage in the 30001Robot Message(20) packet?

---

<div class="post-metadata">

**Author:** ![mbush](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/mbush/32/76_2.png) [@mbush](https://forum.universal-robots.com/u/mbush)\
**Post date:** [January 22, 2019, 2:13pm UTC](https://forum.universal-robots.com/t/get-log-file-or-error-codes-in-real-time/3488/4 "2019-01-22T14:13:26Z")

</div>

Yes, at a minimum I would decode those. You may also want to decode the Runtime Exception Packet, message packet 20, type 10.

Matt

---

<div class="post-metadata">

**Author:** ![anon70167123](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@anon70167123](https://forum.universal-robots.com/u/anon70167123)\
**Post date:** [January 24, 2019, 1:03am UTC](https://forum.universal-robots.com/t/get-log-file-or-error-codes-in-real-time/3488/5 "2019-01-24T01:03:54Z")

</div>

![1548290858(1)](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/8/8d24464b7226d31704dd0a4104e5c3ecf29cfcfd.png) [quote=“mbush, post:4, topic:3488, full:true”]  
Yes, at a minimum I would decode those. You may also want to decode the Runtime Exception Packet, message packet 20, type 10.

Matt  
[/quote]

Thanks again,Matt. i still want to ask you some question. This picture is the UR error code, the error number on the left and the detailed description of the error on the right. This file is from UR’s log\_history.txt, but it is not transmitted in real time. Now I have a new idea. If I can extract the log\_history file in real time, it will make my job easier.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/system/32/1_2.png) [@system](https://forum.universal-robots.com/u/system)\
**Post date:** [January 27, 2021, 12:44am UTC](https://forum.universal-robots.com/t/get-log-file-or-error-codes-in-real-time/3488/6 "2021-01-27T00:44:17Z")

</div>

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