# I need to display a program event log in dashboard

**URL:** <https://discourse.nodered.org/t/i-need-to-display-a-program-event-log-in-dashboard/1695>\
**Category:** Dashboard\
**Created:** [19 July 2018 14:16 UTC](https://discourse.nodered.org/t/i-need-to-display-a-program-event-log-in-dashboard/1695 "2018-07-19T14:16:23Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)\
**Post date:** [19 July 2018 21:07 UTC](https://discourse.nodered.org/t/i-need-to-display-a-program-event-log-in-dashboard/1695/8 "2018-07-19T21:07:22Z")

</div>

If you are using some type of \*nix system, the simplest way to get the last 100 lines of a log file in reverse order (that I have used) is this command:

`tac /path/to/file.log | head -100`

The `tac` command (`cat` backwards) outputs the lines of the file in reverse order -- then the `head` command returns only the first N lines. If you can put that command into an `exec` node, then the output could be send to a `ui_template` node for rendering.

---

_[View the full topic](https://discourse.nodered.org/t/i-need-to-display-a-program-event-log-in-dashboard/1695)._
