Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
doc/journal: add user journal
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Tortuyaux <[email protected]>
Co-authored-by: Kai Lüke <[email protected]>
  • Loading branch information
tormath1 and pothos committed Apr 5, 2023
1 parent 9cd5be0 commit 1bc3053
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/setup/debug/reading-the-system-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@ Dec 22 12:32:39 localhost docker[9772]: /usr/sbin/apache2ctl: 87: ulimit: error
Dec 22 12:32:39 localhost docker[9772]: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.6 for ServerName
```
## Read the user journal from the current user
It might be required to add a user different from `core` user to the `systemd-journal` group to read the user journal. It can be done with this Butane config:
```yaml
variant: flatcar
version: 1.0.0
passwd:
users:
- name: flatcar
groups:
- systemd-journal
```
Then from `flatcar` login: `journalctl --user`.
## Read entries since boot
Reading just the entries since the last boot is an easy way to troubleshoot services that are failing to start properly:
Expand Down

0 comments on commit 1bc3053

Please sign in to comment.