$npx skillfedfor your agent

django-log-formatter-asim

Formats Django logs in ASIM format.

With conditionsPyPI MonitoringReleased Jul 2026108.1K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — django_log_formatter_asim-1.3.1-py3-none-any.whl
v1.3.1 · released 2026-07-22 · Python <3.15,>=3.10 · 3 runtime deps: ddtrace, django, django-ipware

Yes, if you need to send Django logs to Azure Sentinel or require ASIM-compliant structured logging for security compliance. Low install friction, no known vulnerabilities, and active maintenance make it a safe choice. Not necessary if you use a different SIEM or have no requirement for ASIM normalization.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later (supports up to 3.14); django and ddtrace must be installed.
  • Low install friction with a pure Python wheel.
  • Actively maintained as of 23 days ago.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open and proprietary projects, with only attribution required.

last release 2026-07-22 (23 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 108,098 downloads/mo, #12,579 on PyPI

Verify before relying

pip install django-log-formatter-asim

from django_log_formatter_asim import ASIMFormatter

LOGGING = {
    "formatters": {
        "asim_formatter": {"()": ASIMFormatter},
    },
    "handlers": {
        "asim": {"formatter": "asim_formatter"},
    },
    "root": {"handlers": ["asim"]},
}
  • Whether ASIM field mapping coverage is sufficient for your specific security event types beyond authentication and file activity.
  • Performance impact of JSON serialization on high-volume logging scenarios.
  • Compatibility with custom Django logging handlers or third-party log aggregation services.
Same gist for agents: .md · .json

What it is and what it does

This package provides a Django logging formatter that converts application logs into Azure Sentinel's ASIM schema—a standardized format for security event normalization. It includes a base ASIMFormatter class that routes logs through specialized serializers: a generic ASIMRootFormatter for standard logs and a custom ASIMRequestFormatter for django.request logs (4xx/5xx responses). The package also exposes an events module with functions like log_authentication and log_file_activity that generate ASIM-compliant event entries directly from Django HttpRequest objects.

The formatter outputs structured JSON with ASIM fields (EventSchema, EventType, EventResult, SrcIpAddr, etc.) plus optional DataDog trace fields when available. Configuration is handled through Django settings: DLFA_LOG_PERSONALLY_IDENTIFIABLE_INFORMATION controls PII inclusion, DLFA_TRACE_HEADERS customizes trace header names for different hosting environments (AWS, GOV.UK PaaS), and DLFA_INCLUDE_RAW_LOG optionally embeds the original unformatted log (with a security warning). You can extend the formatter by subclassing ASIMRootFormatter and registering custom serializers for specific loggers.

Use it for

  • Send Django application logs to Azure Sentinel for centralized security monitoring and threat detection.
  • Generate standardized authentication event logs (login/logoff) that comply with ASIM schema for compliance audits.
  • Track file operations (copy, move, rename) with ASIM FileEvent schema for data access and integrity monitoring.
  • Integrate with DataDog APM by automatically including trace IDs and span IDs in ASIM-formatted logs.
  • Normalize logs from Django apps deployed across different cloud platforms (AWS, GOV.UK PaaS) using environment-specific trace headers.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to send Django logs to Azure Sentinel or require ASIM-compliant structured logging for security compliance.

Low install friction, no known vulnerabilities, and active maintenance make it a safe choice. Not necessary if you use a different SIEM or have no requirement for ASIM normalization.

Install

django-log-formatter-asim on PyPI

Before you install

Low install friction with a pure Python wheel. Actively maintained as of 23 days ago. Depends on django, ddtrace, and django-ipware, all standard packages with straightforward installation.

Requires Python 3.10 or later (supports up to 3.14); django and ddtrace must be installed.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open and proprietary projects, with only attribution required.

Quickstart

pip install django-log-formatter-asim

from django_log_formatter_asim import ASIMFormatter

LOGGING = {
    "formatters": {
        "asim_formatter": {"()": ASIMFormatter},
    },
    "handlers": {
        "asim": {"formatter": "asim_formatter"},
    },
    "root": {"handlers": ["asim"]},
}

Verify before relying

  • Whether ASIM field mapping coverage is sufficient for your specific security event types beyond authentication and file activity.
  • Performance impact of JSON serialization on high-volume logging scenarios.
  • Compatibility with custom Django logging handlers or third-party log aggregation services.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <3.15,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
ddtracedjangodjango-ipware
MaintenanceActively maintained 23 days since the last release
First released
Downloads108,098 / month, #12,579 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: django_log_formatter_asim-1.3.1-py3-none-any.whl

Tags

Capabilities
django asim log formatterazure sentinel log normalizationdjango structured logging jsonasim event schema djangosecurity log formatting
Topics
security-loggingazure-sentineldjango-middleware

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “django asim log formatter”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.

Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.

Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.

Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also django-datadog-logger · logging-azure-rest · mo-logs · django-request-logging · python-json-logger · logfmter · JSON-log-formatter · cloudwatch · django-ipware · jsonformatter