{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/5"}],"enrichment":{"capability":"Formats Django application logs in Azure Sentinel's ASIM (Advanced Security Information Model) schema, converting standard Django logging output to structured JSON that conforms to Microsoft's normalization format.","skillfed_tags":["security-logging","azure-sentinel","django-middleware"],"use_cases":["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."],"what_it_does":"This package provides a Django logging formatter that converts application logs into Azure Sentinel's ASIM schema\u2014a 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.\n\nThe 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.","worth_installing":"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."},"id":"django-log-formatter-asim","links":{"html":"https://skillfed.io/packages/django-log-formatter-asim","md":"https://skillfed.io/packages/django-log-formatter-asim.md","pypi":"https://pypi.org/project/django-log-formatter-asim/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-22","license_spdx":null,"license_treatment":"permissive","name":"django-log-formatter-asim","python_support":"supports_current","summary":"Formats Django logs in ASIM format."},"popularity":{"monthly_downloads":108098,"position":12579,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.1"}
