# Node-red-log to dashboard

**URL:** <https://discourse.nodered.org/t/node-red-log-to-dashboard/37034>\
**Category:** General\
**Created:** [5 December 2020 05:13 UTC](https://discourse.nodered.org/t/node-red-log-to-dashboard/37034 "2020-12-05T05:13:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AungKL](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@AungKL](https://discourse.nodered.org/u/AungKL)\
**Post date:** [5 December 2020 05:13 UTC](https://discourse.nodered.org/t/node-red-log-to-dashboard/37034/1 "2020-12-05T05:13:24Z")

</div>

Hi Dude,  
I'd like to display [Node Red Log](https://nodered.org/docs/user-guide/runtime/logging) in dashboard.

I've tried to write some here from this [Reference](https://discourse.nodered.org/t/node-red-log-should-be-longer/4315). But it's not successful.

```auto
[{"id":"ba032ebd.36c98","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"d101f24f.2578f","type":"exec","z":"ba032ebd.36c98","command":"sudo journalctl -f -n 50 -u nodered -o cat","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":400,"y":120,"wires":[["ea613410.4102e8"],[],[]]},{"id":"58ee94cf.e5fe0c","type":"inject","z":"ba032ebd.36c98","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":120,"wires":[["d101f24f.2578f"]]},{"id":"ea613410.4102e8","type":"debug","z":"ba032ebd.36c98","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":690,"y":100,"wires":[]}]

```

Could someone advise me?

Thank in advance,  
Aung

---

<div class="post-metadata">

**Author:** ![AungKL](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@AungKL](https://discourse.nodered.org/u/AungKL)\
**Post date:** [5 December 2020 06:31 UTC](https://discourse.nodered.org/t/node-red-log-to-dashboard/37034/2 "2020-12-05T06:31:04Z")

</div>

After searching the forum, I've found [Node-red-log Data Export](https://discourse.nodered.org/t/getting-image-in-dashboard/228/7) and display the log activity in dashboard.

One more question?  
How to trigger the command (sudo node-red-log) automatically when there is a activity?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 December 2020 10:27 UTC](https://discourse.nodered.org/t/node-red-log-to-dashboard/37034/3 "2020-12-05T10:27:46Z")

</div>

Did you post the wrong link? That link is about displaying an image on the dashboard.

---

<div class="post-metadata">

**Author:** ![AungKL](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@AungKL](https://discourse.nodered.org/u/AungKL)\
**Post date:** [5 December 2020 11:49 UTC](https://discourse.nodered.org/t/node-red-log-to-dashboard/37034/4 "2020-12-05T11:49:43Z")

</div>

Sorry, it's wrong link  
Correct one is here. [Node-red-log Data Export](https://discourse.nodered.org/t/node-red-log-data-export/16168/13)  
It's used button to activate the node-red-log.

Actually, I want to log the activity of dashboard such as button, slider, all user input. Currently, I use "link in" and "link out" nodes to trigger instead of button.

![nr log](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/7/27a5021ee1ce9bf886590f2fd5a9dcbfa2cb1b6e.jpeg)

Thanks,  
Aung

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 December 2020 12:05 UTC](https://discourse.nodered.org/t/node-red-log-to-dashboard/37034/5 "2020-12-05T12:05:56Z")

</div>

> [@AungKL](#):
>
> Actually, I want to log the activity of dashboard such as button, slider, all user input.

That is a completely different question. I suggest you start again with a new thread and the correct title so someone who knows may be see it. Post it under the Dashboard category.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 February 2021 12:06 UTC](https://discourse.nodered.org/t/node-red-log-to-dashboard/37034/6 "2021-02-03T12:06:02Z")

</div>

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