Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How do I view Logs in Stretch?

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
kcbagr
Posts: 53
Joined: 2016-09-22 18:10

How do I view Logs in Stretch?

#1 Post by kcbagr »

Prior to stretch, using Gnome-shell to open Logs showed me logs. But in Stretch I get nothing but empty pages. I assume Stretch has changed something.

So how does one view logs now? Why is there a Logs app that is only ever empty?

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: How do I view Logs in Stretch?

#2 Post by pylkko »

I don't know. Maybe you misconfigured the app or GNOME logs is just shite. However, the logs are there. I don't know what logs in particular you are after, but try

as root:

Code: Select all

cat /var/log/syslog

Code: Select all

dmesg

Code: Select all

journalctl

incas
Posts: 5
Joined: 2018-01-22 18:42

Re: How do I view Logs in Stretch?

#3 Post by incas »

Open a terminal and use journalctl.
last boot: journalctl -b
only errors/critical messages: journalctl -p err -b
follow the log: journalctl -f
a single service/unit: journalctl -u example.service

I recommend enabling persistent logging and restrict log size
/etc/systemd/journald.conf
Storage=persistent
SystemMaxUse=128M

Post Reply