Skip to main content

Watch and upload log files to

Project description

PyPI Python Versions

Codeship Status for albertyw/logfit-daemon

The LogFit daemon watches log files and sends data to the LogFit app for analysis.




# Start in foreground mode
python3 logfit/ [run|foreground]

# Start in daemon mode
python3 logfit/ start

# Stop daemon
python3 logfit/ stop

# Restart the daemon
python3 logfit/ restart

# Get the daemon status
python3 logfit/ status


The daemon can read from a logfit_config.yaml config file of the format:

# Required: Get this from your 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
- text/plain
- inode/x-empty

# Optional: List of file globs to not watch, should be the
# full absolute path
ignore_paths: []


pip install -r requirements-test.txt
coverage run test
coverage report


# Publish to PyPI
python sdist bdist_wheel
twine upload dist/*

# Generate binaries for multiple operating systems
pyinstaller logfit/ -F -p logfit --hidden-import queue -n logfit_linux_x86_64
pyinstaller logfit/ -F -p logfit --hidden-import queue -n logfit_macos_x86_64
pyinstaller logfit/ -F -p logfit --hidden-import queue -n logfit_windows_x86_64

# Copy binaries into logfit-daemon-binary

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
logfit-1.1.0-py3-none-any.whl (11.0 kB) Copy SHA256 hash SHA256 Wheel py3 May 31, 2018
logfit-1.1.0.tar.gz (7.8 kB) Copy SHA256 hash SHA256 Source None May 31, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page