GithubHelp home page GithubHelp logo

awfulcooking / journalfs Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 0.0 47 KB

Mount the systemd journal as log files. FUSE filesystem

License: Other

Go 97.58% Makefile 2.42%
systemd golang fuse-filesystem fuse log-files logfiles systemd-journal systemd-journald

journalfs's Introduction

journalfs

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

Build

  1. sudo apt install libsystemd-dev golang fuse3
  2. make

Install

  1. sudo apt install fuse3

  2. echo "user_allow_other" | sudo tee -a /etc/fuse.conf

  3. sudo make install

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

journalfs's People

Contributors

awfulcooking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

journalfs's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.