How do I view Logs in Stretch?

If none of the more specific forums is the right place to ask

How do I view Logs in Stretch?

Postby kcbagr » 2018-01-24 20:43

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?
kcbagr
 
Posts: 35
Joined: 2016-09-22 18:10

Re: How do I view Logs in Stretch?

Postby pylkko » 2018-01-24 20:54

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
User avatar
pylkko
 
Posts: 1315
Joined: 2014-11-06 19:02

Re: How do I view Logs in Stretch?

Postby incas » 2018-01-29 16:39

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
incas
 
Posts: 5
Joined: 2018-01-22 18:42


Return to General Questions

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable