log-viewer: log web-exposer toolkit
What is log-viewer for?
log-viewer is just a lightweight Python package that web-exposes your log files using Flask's interface.
How do I get set up?
Requisites
- python >= 3.6 running on a Linux environment.
Where to get it
PyPi repository, execute:
pip install log-viewer
Installation from sources
Cloning the git repo, execute in root folder:
python setup.py install
Use
After package installation, execute:
log-viewer
log-viewer will search log files and it will expose them within HTML native accordions in http://0.0.0.0:8081 (default)
No login is needed by default. In order to activate the login, just set user or password through the execution options.
Execution options
log-viewer execution options:
- -a --address Logs exposing address. Default: "0.0.0.0"
- -p --port Logs exposing port. Default: 8081
- -u --user User for login, it activates the login mode. If no password is set, the login mode will only check the provided user
- -psw --password Password for login, it activates the login mode. If no user is set, the login mode will only check the provided password
- -lp --logPaths Paths to search (recursively) the logs from (";" separated). Default: "/var/log/"
Example
The following example will activate the login mode with custom parameters:
log-viewer -u admin -psw admin -p 8080 -lp "/var/log/django;/var/log/apt" -a "127.0.0.1"
License
Dependencies
- Flask >= 1*
Contact
Metadata
Release files for log-viewer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| log_viewer-0.1.0.tar.gz | 5.2 kB | Without provenance | Details for log_viewer-0.1.0.tar.gz |
Release files / log_viewer-0.1.0.tar.gz
| Download URL | log_viewer-0.1.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7654786860e77bf085660791171f1446ef38cef2d1dc11e06c1e298d78f94c8f
|
|
BLAKE2b-256 checksum How to use checksums |
213d94dc164df45f52a0d39d615c54244d2b53f46993dac94e20c373411f6d7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10
|
Security for log-viewer 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.