Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

log from celery to logstash and structured log

Project description

# celstash
Celery logging to logstash and sturctured log (JSON) file

Please submit bugs [here](https://github.com/CyberInt/celstash/issues).

# Usage

import celstash
import logging

logger = celstash.new_logger('worker1', logstash_host='example.com')
logger.setLevel(logging.INFO)
logger.info('Money is the root of all evil, and man needs roots.')


# logstash setup

input {
udp {
codec => json
}
}
output {
elasticsearch {
host => localhost # Change to your host
}
}

# License
MIT, see [LICENSE.txt](LICENSE.txt)

Project details


Release history Release notifications

Download files

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

Files for celstash, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size celstash-0.1.0.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View hashes

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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page