Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honza/django-riemann
Send logs from Django to Riemann
https://github.com/honza/django-riemann
Last synced: about 6 hours ago
JSON representation
Send logs from Django to Riemann
- Host: GitHub
- URL: https://github.com/honza/django-riemann
- Owner: honza
- License: bsd-3-clause
- Created: 2015-01-30T12:50:40.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T18:50:52.000Z (over 7 years ago)
- Last Synced: 2024-09-17T00:32:05.039Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
django-riemann
==============Send logging information to a [Riemann][1] instance via Django's `LOGGING`
directive.[1]: http://riemann.io/
Installl
--------```
pip install django-riemann
```Fields
------```
host: the host name of the app that is sending the logs
service: 'django-logger'
state: log level
time: time of the log event
tags: logger name
description: traceback if available
```Configuration
-------------``` python
RIEMANN_LOGGER_HOST = '127.0.0.1'
RIEMANN_LOGGER_PORT = '5555'
RIEMANN_LOGGER_TRANSPORT = 'udp' # or 'tcp'LOGGING = {
# ...
'handlers': {
'riemann': {
'level': 'INFO',
'class': 'riemann.handler.RiemannHandler'
}
}
}
LOGGING['root']['handlers'].append('riemann')
```License
-------BSD, short and sweet