jviewer
Simple realtime viewer for journald.
This project was created as example of streaming data from flask application.
Additional requirements
Any GNU/Linux distribution based on systemd. libsystemd-dev or it's equivalent must be installed in your system.
Run the application
First of all, poetry needs to be installed. On most GNU/Linux systems just run this command:
python3 -m pip install --user poetry
Then, install project dependencies:
poetry install
Finally, run the application:
poetry run flask run
After application startup, it will be available at localhost:5000.
Usage
Just type systemd unit name in field on index page and click submit.
Tests
poetry run python -m pytest
Run with gunicorn in production
WARNING: To work normally with this application gunicorn must be used with async, gevent for example, or threaded worker - gthread.
Just copy .secrets.toml.example to .secrets.toml and run:
poetry run gunicorn jviewer.wsgi