13

I want to see the previous dmesg log before the reboot. In previous versions of fedora, It used to be in /var/log/messages. But from Fedora 20, it's being stored through systemd i.e. journalctl.

I've a directory /var/log/journal. It has many files and all of them having extension as .journal. I tried to open them with gedit. But couldn't succeed. I tried with notepad++. It's showing unreadable data as if a binary file. How to read them?

Chris Stryczynski
  • 5,178
  • 5
  • 40
  • 80
RatDon
  • 271
  • 2
  • 4
  • 15

1 Answers1

18

Borrowed from this answer:

journalctl --file

e.g.

journalctl --file /path/to/some/file.journal

As indicated in that answer, these logs are regularly rotated, and may not stretch back as far as you might hope.

AdminBee
  • 21,637
  • 21
  • 47
  • 71
Stephan
  • 2,791
  • 17
  • 16