LogFit Daemon
The LogFit daemon watches log files and sends data to the LogFit app for analysis.
Installation
TODO
Usage
# Start in foreground mode
python3 logfit/client.py [run|foreground]
# Start in daemon mode
python3 logfit/client.py start
# Stop daemon
python3 logfit/client.py stop
# Restart the daemon
python3 logfit/client.py restart
# Get the daemon status
python3 logfit/client.py status
Configuration
The daemon can read from a logfit_config.yaml config file of the format:
# Required: Get this from your log.fit account
source: "64a4b9bd88f14511926e0de86f23e2d8"
# Optional: The directory the daemon will watch
watch_directory: "/var/log/"
# Optional: Minimum log level. Possible options are
# critical, error, warning, info, and debug
log_level: "warning"
# Optional: File to write daemon logs to
log_file: "logfit.log"
# Optional: limit watching log files to given mime types
allowed_mime_types:
- text/plain
- inode/x-empty
# Optional: List of file globs to not watch, should be the
# full absolute path
ignore_paths: []
Development
python setup.py develop
pip install -r requirements-test.txt
flake8
coverage run -m unittest
coverage report -m
Publishing
# Publish to PyPI
python setup.py sdist bdist_wheel
twine upload dist/*
# Generate binaries for multiple operating systems
pyinstaller logfit/main.py -F -p logfit --hidden-import queue -n logfit_linux_x86_64
pyinstaller logfit/main.py -F -p logfit --hidden-import queue -n logfit_macos_x86_64
pyinstaller logfit/main.py -F -p logfit --hidden-import queue -n logfit_windows_x86_64
# Copy binaries into logfit-daemon-binary
Metadata
Release files for logfit 1.1.1
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 |
|---|---|---|---|---|
| logfit-1.1.1.tar.gz | 8.9 kB | Without provenance | Details for logfit-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| logfit-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for logfit-1.1.1-py3-none-any.whl |
Total release size: 17.8 kB
Release files / logfit-1.1.1.tar.gz
| Download URL | logfit-1.1.1.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b64c7b42ef184ed84f254bd4df4541cf0c1c51f718df71f67ad999860373e157
|
|
BLAKE2b-256 checksum How to use checksums |
859cdea375ae025eeee37d1ee366f611bc001ff3d33a6b4ab30d8a13d162556c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / logfit-1.1.1-py3-none-any.whl
| Download URL | logfit-1.1.1-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39b73f1a1cd2390afb352d8d7a4984ce73d95ef378f54c2c742a27bf60beb50f
|
|
BLAKE2b-256 checksum How to use checksums |
0ee4e3889a6bf117645ec40163316fb75aecb94dc4deac7d86362a0827b8480e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Security for logfit 1.1.1
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.