celstash-0.1.0
توضیحات
log from celery to logstash and structured log
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | celstash-0.1.0 |
| نام | celstash |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | CyberInt |
| ایمیل نویسنده | tools@cyberint.com |
| آدرس صفحه اصلی | https://github.com/CyberInt/celstash |
| آدرس اینترنتی | https://pypi.org/project/celstash/ |
| مجوز | MIT |
# 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)
نحوه نصب
نصب پکیج whl celstash-0.1.0:
pip install celstash-0.1.0.whl
نصب پکیج tar.gz celstash-0.1.0:
pip install celstash-0.1.0.tar.gz