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.