Logit.io
Solutions

Django Logging

Send Django logs to a Logs stack, search them in OpenSearch Dashboards and visualise activity with ready-made dashboards.

Trusted by engineering teams worldwide

Maersk
Murphy
Ringier
GDS
Guesty
HackerRank
Equal Experts
DevEx
Digitale Medier
xneelo
CAA
Pivotal
Robomed Network
Neoway
Gomo Learning
Department for BEIS
IBM
Broad Institute
The Honest Company
Traels
De Banke
Dofinity
BioCatch
Kainos
Youredi
Flux Music
Goji
Ving
HypSports
Boston Logic
Double Jump

Ship Django logs to a Logs stack so you can search requests, errors and logger messages in one place. Follow From sign-up to first searchable log: the new Logs onboarding to get your first log into search.

Use ready-made dashboards from the Dashboard Library to explore supported log sources alongside your Django logs.

View Django logs in OpenSearch Dashboards

Send Django logs to a Logs stack and open them in Hosted OpenSearch and OpenSearch Dashboards. Search the request, error and logger fields without hosting the UI yourself.

OpenSearch Dashboards

Nginx web logs in OpenSearch Dashboards, using demo data

Send Django logs to a Logs stack

This setup matches the Django integration guide, which uses python-logstash-async version 2.5.0. Install the package:

pip install python-logstash-async

Import the logger, handler and formatter:

import logging
from logstash_async.handler import AsynchronousLogstashHandler
from logstash_async.handler import LogstashFormatter

Use the following main() example to send log messages. Replace {logstashHost} and {logstashSslPort} with the Logstash host and SSL port from your Logs stack, as shown in the Django integration guide:

def main():

    # Create the logger and set its logging level
    logger = logging.getLogger("logstash")
    logger.setLevel(logging.DEBUG)

    # Create the handler
    handler = AsynchronousLogstashHandler(
        host='{logstashHost}',
        port='{logstashSslPort}',
        ssl_enable=True,
        ssl_verify=False,
        transport='logstash_async.transport.BeatsTransport',
        database_path='')

    # Here you can specify additional formatting on your log record/message
    formatter = LogstashFormatter()
    handler.setFormatter(formatter)

    # Assign handler to the logger
    logger.addHandler(handler)

    # Send log records to Logstash
    logger.error('django-logstash-async: django error message.')
    logger.info('django-logstash-async: django info message.')
    logger.warning('django-logstash-async: django warning message.')
    logger.debug('django-logstash-async: django debug message.')

if __name__ == '__main__':
    main()

Run the example, then search for the messages in OpenSearch Dashboards. See the Django integration guide for the full setup.

Real-Time Performance Monitoring

Django logging with Logit.io provides full visibility into your applications and infrastructure. Simplified real-time monitoring ensures you stay on top of performance stats, error rate, latency, and swift insights to enable your team to make the right decision during a limited window of time.

Conduct faster root-cause analysis and trace Django performance issues to the exact code line. Intercept errors and prevent spikes in data and costly downtime. Optimise performance, deliver noteworthy customer experiences, and reduce the average time to repair using a single centralised logging tool.

Easily collect all Django logs using Syslog as soon as they're generated into the Logit.io cloud-native logging platform. Our platform provides your data with a single location to eliminate the risk of losing critical data due to the pitfalls of logging across distributed systems.

Logging as a Service (LaaS) with Django

Logging as a Service is a cloud-based model for managing log files coming from various endpoints such as applications, servers, devices, and users. LaaS allows you to monitor the changes, security audits, and any other reports from a single platform built upon the best features available from the Elastic Stack, Grafana & OpenSearch.

With all data being monitored in a centralised and compliant system, your engineering team can save time and energy that would otherwise go into manually tracing and monitoring each application, server, and device.

Django data forwarded into our LaaS platform gets processed, parsed, and enriched to allow for accurate log monitoring and alert configuration. Additionally, Logit.io's LaaS can streamline the process of visualizing Django log files.

With Logit.io, you can choose where to store your Django log files in the US, the UK or our other various data centres within the EU.

Django Logs Management

As Django log files are tricky to handle if you proceed to manage these log files without a log management tool, you'll risk finding yourself overwhelmed with an excessive amount of data and could easily risk missing critical alerts.

Logit.io offers complete log and metrics management which offers an intuitive web interface to receive and manage log files. Our platform works in tandem with Python's built-in module for system logging and improves on it by forwarding logs for processing via hosted Logstash pipelines.

This ensures Django log files are collected as soon as they're generated. You'll also have full flexibility to isolate and manage file sources individually and control the overall access policies using advanced role-based access controls.

Data Visualisation and Dashboards

A customisable dashboard and accurate data visualisation are two of the cornerstones of effective Django framework reporting. At Logit.io, our powerful Hosted Elasticsearch engine allows you to analyse and centralise millions of log instances. Furthermore, our platform provides a complete and reliable reporting solution that offers both preconfigured and custom dashboards.

Our data visualisation tools are backed by Kibana, Grafana & OpenSearch Dashboards to help you create interactive and shareable results using charts ideal for reporting on Django log activity.

Both dashboard and individual reports can be shared and synced with your team with a single click. Not only is this useful for presentations and sharing key insights, but this also proves vital for timely troubleshooting.

Notifications and Alerts

With Logit.io, configure managed Alerting so you are notified of critical errors in Django and Python logs, or when server metrics cross thresholds. Choose from 40+ destinations including Email, Slack, webhooks, PagerDuty, and Opsgenie.

Alert criteria can match any pattern, blacklists, whitelists, field value changes, or spikes/flatlines in regular activity — and work with industry-leading reporting and ticketing systems.

Companies feel the difference when they use Logit.io

“Internally, Logit.io has made it easier for us to provide better support for our customers, since finding individual messages based on various data in the payload has become easier.”

“At Youredi, pretty much everyone from our technical support teams through to our professional services teams uses Logit.io.”

Youredi

Mats von Weissenberg

CTO, Youredi

Start your 14-day free trial

No credit card required. Logs $59.72/month for 2GB a day with 14 days' search.