Skip to content

Simple Flask WebSocket application which sends journalctl data to browser in realtime

License

Notifications You must be signed in to change notification settings

dorokhin/flask-ws-journalctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-ws-journalctl

Simple Flask WebSocket application which sends journalctl -u unit.name -f data to browser in realtime.

Run:

to run only on localhost:

~$ pip install -r requirements.txt
~$ gunicorn --bind 127.0.0.1:5000 --workers 3 app:app # 

Or run on external ip

Edit 'ws_url': 'ws://127.0.0.1:5000/log' line in app.py, set your ip address.

~$ gunicorn --bind 0.0.0.0:5000 --workers 3 app:app

image

About

Simple Flask WebSocket application which sends journalctl data to browser in realtime

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published