{"repo":"koslib/django-traffic","free":true,"listed":false,"github":"https://github.com/koslib/django-traffic","clone":"git clone https://github.com/koslib/django-traffic.git","description":"Django middleware that helps visualize your app's traffic in Kibana","language":"Python","stars":56,"topics":["django","django-middleware","elasticsearch","kibana"],"license":"MIT","category":"data-pipelines","readme_excerpt":"django-traffic A Django middleware that helps visualize your app's traffic in Kibana In a nutshell, by using this middleware you need no more effort to stream your app's traffic in your ElasticSearch host(s) and use Kibana for visualizations around it. Request information transmitted to ElasticSearch: - timestamp type: date - location type: geo point - method type: string - body type: string - path type: string - path info type: string - scheme type: string - encoding type: string - encoding type type: string , supported only in Django 1.10 and later - ip type: ip Geolocation is achieved by using django.contrib.gis.geoip2.GeoIP2 wrapper, included in Django 1.9 and latter. Quick Start 1. Install using pip: To install the latest version directly from GitHub: 2. Include \"django-traffic\" in your INSTALLED APPS: 3. Include \"ESTrafficInfoMiddleware\" to your MIDDLEWARE CLASSES: The middleware is created in a way that supports both MIDDLEWARE CLASSES on Django older versions and MIDDLEWARE in latest Django versions. Configuration There are some variables required in your settings.py file to function normally. - TRAFFIC INDEX NAME : this is the name of the index that will be used in ElasticSearch. If you leave this empty or do not define it, the default index name will be applied: django-traffic . - ES CLIENT : if you already have an ElasticSearch() client instance ready in your app, we'll use this one be default. - ES HOST : this is required only if you don't have an ES CLIENT define","default_branch":null,"files":null,"tree":[],"storefront":"/r/koslib","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/koslib/django-traffic/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}