[arch-general] How to show (kernel) messages by journalctl?
Hi, yesterday I rebooted at 17:51 from linux 3.11.4-1 to linux-rt 3.10.14_rt9-1 and then shut down at 17:55. How can I get log data, kernel messages of this startup? This is all I get: [rocketmouse@archlinux ~]$ journalctl -a --since "2013-10-12 17:50:00" --until "2013-10-12 18:00:00" -- Logs begin at Wed 2013-08-28 22:06:09 CEST, end at Sat 2013-10-12 20:36:06 CEST. -- Oct 12 17:51:10 archlinux systemd[579]: Stopping Default. [rocketmouse@archlinux ~]$ A log in for rt kernels 3.10.x doesn't work on my machine, rt kernels 3.8.x don't cause this issue. During shutdown and startup there were much more messages, than just "Oct 12 17:51:10 archlinux systemd[579]: Stopping Default." [rocketmouse@archlinux ~]$ journalctl -k -- Logs begin at Wed 2013-08-28 22:06:09 CEST, end at Sat 2013-10-12 20:36:06 CEST. -- JFTR there are no .xsession-errors.old for the attempt to log in. Regards, Ralf
journactl -b or journalctl -xb -- John F. Davis 6 Kandes Court Durham, NC 27713 919-888-8358 独树一帜
On 2013-10-13 01:51, Ralf Mardorf wrote:
[rocketmouse@archlinux ~]$ journalctl -k -- Logs begin at Wed 2013-08-28 22:06:09 CEST, end at Sat 2013-10-12 20:36:06 CEST. --
Your user needs to have the right privileges to view kernel messages, or run as root. chris@gopher:~$ journalctl -k | wc -l 1 chris@gopher:~$ sudo journalctl -k | wc -l 957
Hi On Sat, Oct 12, 2013 at 6:06 PM, Chris Down <chris@chrisdown.name> wrote:
On 2013-10-13 01:51, Ralf Mardorf wrote:
[rocketmouse@archlinux ~]$ journalctl -k -- Logs begin at Wed 2013-08-28 22:06:09 CEST, end at Sat 2013-10-12 20:36:06 CEST. --
Your user needs to have the right privileges to view kernel messages, or run as root.
Or to be a member of 'systemd-journal' UNIX group. Quoting the man page http://www.freedesktop.org/software/systemd/man/journalctl.html """All users are granted access to their private per-user journals. However, by default, only root and users who are members of the "systemd-journal" group get access to the system journal and the journals of other users."""
chris@gopher:~$ journalctl -k | wc -l 1 chris@gopher:~$ sudo journalctl -k | wc -l 957
On 13/10/2013 01:51, Ralf Mardorf wrote:
yesterday I rebooted at 17:51 from linux 3.11.4-1 to linux-rt 3.10.14_rt9-1 and then shut down at 17:55.
How can I get log data, kernel messages of this startup?
To get log data from a specific startup, as root/using sudo, run: # journalctl -b -1 "_TRANSPORT=kernel" where "-b -1" means the previous boot ("-b -2" meaning the boot before and so on). You can also use: # journalctl -b -0 "_TRANSPORT=kernel" to show current boot messages, which is equivalent to: # journalctl -k Tim
On Mon, 14 Oct 2013 19:38:54 +0200, Timothée Ravier <siosm99@gmail.com> wrote:
To get log data from a specific startup, as root/using sudo, run: # journalctl -b -1 "_TRANSPORT=kernel" where "-b -1" means the previous boot ("-b -2" meaning the boot before and so on).
You can also use: # journalctl -b -0 "_TRANSPORT=kernel" to show current boot messages, which is equivalent to: # journalctl -k
Thank you Tim, Chris and John :) Regards, Ralf
participants (5)
-
Anatol Pomozov
-
Chris Down
-
John Davis
-
Ralf Mardorf
-
Timothée Ravier