This a online log view tool, normally you need define a online compressed log path. app will download/extract it, and show file list with hyperlink. Then once you choose one of them, you can start view log online with colorfulled by ansi if it contained.
- Flask/Jinja2: python webapp framework
- gunicorn: webapp deploy tool
- libarchive-c: extract file
- requests: download file
- supervisor: Need install before deploy this app (backgroup deamon)!!
All compressed file which support by libarchive
Use to download and return file list (/logview/view/<logpath>)
If download/extract fail, will return http code 400/500
Normally log/extract will be put to system tempdir with append logview
Use to view log content, click will guide to view log
Clone this project to your local, and run install.sh
Some operation request sudo permission
Default deploy port at 5051, can be change at supervisor.conf
# Build normal
docker build -t logview:1.5.2 .
# Build in China Network
docker build -t logview:1.5.2 -f Dockerfile4CN .
# Deploy
docker run --name logview --mount type=bind,source=/tmp,target=/tmp -p 5051:5051 -d --restart always logview:1.5.2
- Add support online view stream with high size (500M) support
- Add support mjpeg playback online
- Add support video playback online