# Visualiser les logs

**URL:** <https://www.debian-fr.org/t/visualiser-les-logs/73620>\
**Category:** Trucs et Astuces\
**Created:** [Juin 3, 2017, 7:43 UTC](https://www.debian-fr.org/t/visualiser-les-logs/73620 "2017-06-03T07:43:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grandtoubab](https://www.debian-fr.org/user_avatar/www.debian-fr.org/grandtoubab/32/4505_2.png) [@grandtoubab](https://www.debian-fr.org/u/grandtoubab)\
**Post date:** [Juin 3, 2017, 7:43 UTC](https://www.debian-fr.org/t/visualiser-les-logs/73620/1 "2017-06-03T07:43:24Z")

</div>

Salut,  
Avec le systeme de démarrage systemd et ses commandes associées on peut utiliser journalctl pour visualiser le contenu du journal du démarrage.

- Le journal du dernier boot:

`journalctl -b`

Pour info la configuration est dans /etc/systemd/journald.conf  
La valeur par defaut Storage=auto permets de conserver l’historique à la condition d’avoir créé le dossier /var/log/journal sinon seul le dernier boot est géré.  
cf:  
[https://www.freedesktop.org/software/systemd/man/journald.conf.html#](https://www.freedesktop.org/software/systemd/man/journald.conf.html#)  
[https://www.freedesktop.org/software/systemd/man/journalctl.html](https://www.freedesktop.org/software/systemd/man/journalctl.html)

```
root@debian:/# journalctl --list-boots
-3 163abbeffd8345d49d6ef6e63ba7411e Sat 2017-06-03 21:54:35 CEST—Sat 2017-06-03 22:10:58 CEST
-2 a6a527f4383748a0998b01ae34908b1c Sat 2017-06-03 22:11:32 CEST—Sat 2017-06-03 22:40:21 CEST
-1 cd2d8673641e408da3d5a2a801ae476a Sun 2017-06-04 08:31:01 CEST—Sun 2017-06-04 08:44:43 CEST
 0 79d36e452de540cabba20ddabf4ed844 Sun 2017-06-04 08:45:18 CEST—Sun 2017-06-04 08:49:16 CEST

```

journalctl est très puissant dans ses options de recherche, pour lister les erreurs ( les lignes rouges qui font peur mais ne sont pas toujours graves 😀 )

`journalctl -p err`

les erreurs de l’avant-dernier boot

```
journalctl -b -1 -p err
-- Logs begin at Sat 2017-06-03 21:54:35 CEST, end at Sun 2017-06-04 09:39:05 CEST. --
juin 04 08:31:05 debian kernel: kvm: disabled by bios
juin 04 08:31:07 debian kernel: Bluetooth: hci0 command 0x1009 tx timeout
juin 04 08:31:15 debian avahi-daemon[599]: chroot.c: open() failed: No such file or directory
juin 04 08:31:21 debian kernel: ERROR @wl_notify_scan_status : wlan0 Scan_results error (-22)
juin 04 08:31:51 debian pulseaudio[1377]: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.systemd1.NoSuchUnit: Unit dbus-org.bluez.s
juin 04 08:44:38 debian gnome-session-binary[1248]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 04 08:44:38 debian gnome-session-binary[1248]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 04 08:44:38 debian gnome-session-binary[1248]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 04 08:44:38 debian gnome-session-binary[1248]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 04 08:44:38 debian gnome-session-binary[1248]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 04 08:44:38 debian gnome-session-binary[1248]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 04 08:44:41 debian gnome-session-binary[1248]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 04 08:44:41 debian gnome-session-binary[1248]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 04 08:44:41 debian gnome-session-binary[1248]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 04 08:44:41 debian gnome-session-binary[1248]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 04 08:44:41 debian gnome-session-binary[1248]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 04 08:44:41 debian gnome-session-binary[1248]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
juin 04 08:44:42 debian kernel: snd_hda_intel 0000:02:00.1: CORB reset timeout#2, CORBRP = 65535
juin 04 08:44:42 debian kernel: snd_hda_intel 0000:02:00.1: no AFG or MFG node found
juin 04 08:44:42 debian kernel: snd_hda_intel 0000:02:00.1: no AFG or MFG node found
juin 04 08:44:42 debian kernel: snd_hda_intel 0000:02:00.1: no AFG or MFG node found
juin 04 08:44:42 debian kernel: snd_hda_intel 0000:02:00.1: no AFG or MFG node found
```
