I’m trying to read the application logs ( Applications-Select App-> select logs icon on the far right in the user interface ) for an application, but it since the application is continuously writing to the logs, the log screen continuously scrolls to the bottom of the log output. This makes it impossible for me to scroll up and read what is happening.
Is there a way to prevent scrolling down to the bottom of the screen when a new line is written to the log?
If not, is there another way to access the application logs where I can control the scrolling? maybe open it in VIM?
I’m using TrueNAS community edition v25.04.2.5 .
Screenshot of the application log button.
more /var/log/messages or cat /var/log/messages are both options in ssh or shell to scroll through them at your leisure. You can even get fancy & filter outputs with grep if you know what you’re looking for.
Those would be for the TrueNAS server logs, not the docker application logs.
1 Like
uhhh… sorry
from shell/shh to grab the container ID of app in question
docker ps
then docker logs #ID goes here#
Edit: sorry for not carefully reading what you were looking for in the first place
No worries. I noticed that when I click on view logs, it displays the container id there. Using that id, I can run docker logs ( options -f for follow ) and also combine it with less to scroll through them.
Since TrueNAS is supposed to be a black box, I tried to avoid doings things from outside of the UI. but sometimes you just have to. If they add a “pause refresh” button to the view logs screen, I could stay in the UI.
That worked. It looks like the custom app I’m troubleshooting is ignoring my environment variables and
1 Like
I try to do the opposite since who knows what’ll be removed or changed arbitrarily next - at least then I’ll have some indication of where to look when I have to scramble together a workaround.