FUSE filesystem presenting the systemd journal as directories of .log files.
sudo apt install libsystemd-dev golang fuse3
make
-
sudo apt install fuse3
-
echo "user_allow_other" | sudo tee -a /etc/fuse.conf
-
sudo make install
-
Create a system user and group
sudo useradd --system --user-group journalfs
sudo usermod -aG systemd-journal journalfs
sudo usermod -aG journalfs $USER
Note, you'll have to start a new shell or desktop session to activate $USER's group membership.
- Create a mount point, set ownership and permissions:
sudo mkdir /journal
sudo chown journalfs:journalfs /journal
sudo chmod 750 /journal
- Install the service:
sudo cp contrib/journalfs.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now journalfs
$ ls -1p /journal
automount/
device/
mount/
path/
scope/
service/
slice/
socket/
swap/
target/
timer/
Directories will contain .log files.
Help flesh this out, or fix bugs. See Issues for ideas.
GPLv3