journalfs
FUSE filesystem presenting the systemd journal as directories of .log files.
Build
apt install libsystemd-dev golang fuse3
echo "user_allow_other" | sudo tee -a /etc/fuse.conf
make
Install
-
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
Directories
$ ls -1p /journal
automount/
device/
mount/
path/
scope/
service/
slice/
socket/
swap/
target/
timer/
Directories will contain .log files.
Contributions welcome
Help flesh this out, or fix bugs. See Issues for ideas.
License
GPLv3