journalfs

module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: GPL-2.0

README

journalfs

FUSE filesystem presenting the systemd journal as directories of .log files.

Build

  1. apt install libsystemd-dev golang fuse3
  2. echo "user_allow_other" | sudo tee -a /etc/fuse.conf
  3. make

Install

  1. make install

  2. 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.

  1. Create a mount point, set ownership and permissions:
sudo mkdir /journal
sudo chown journalfs:journalfs /journal
sudo chmod 750 /journal
  1. 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

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL