logging-azure-rest
A python threadded logging handler and service extension for Azure Log Workspace OMS REST API.
What it is and what it does
This package extends Python's built-in logging module with a handler that sends logs to Azure Log Analytics Workspace asynchronously. It works by spawning a background thread that collects log records in a queue and periodically flushes them to Azure's REST API in bulk, designed to avoid blocking your application's main execution thread while shipping logs to the cloud.
The handler reads three required environment variables to configure Azure credentials and workspace settings, plus an optional frequency parameter to control how often batched logs are sent. It integrates directly into Python's standard logging configuration, allowing you to route logs to Azure alongside or instead of local handlers, with support for custom formatters to structure the data for Azure Log Analytics queries.
Use it for:
- Centralize application logs from Python services running in Azure to a Log Analytics Workspace for monitoring and alerting.
- Ship logs asynchronously without slowing down request handling in web applications or background workers.
- Route only INFO and above logs to Azure while keeping DEBUG logs local, reducing Azure ingestion costs.
- Integrate Azure log shipping into existing Python logging configurations without rewriting log handling code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python logging handler that asynchronously uploads application logs to Azure Log Analytics Workspace via REST API, using a background thread to batch and send logs without blocking the main process.
No. The package is abandoned (last update 2021-06-14) with no maintenance activity. While it has a permissive MIT license and no known vulnerabilities, the lack of updates creates risk for compatibility with modern Python versions, Azure SDK changes, and security patches. High install friction compounds this. For new projects, use an actively maintained Azure logging solution instead.
Install
logging-azure-rest on PyPI
pip
pip install logging-azure-restuv
uv add logging-azure-restpoetry
poetry add logging-azure-restInstalling logging-azure-rest
Before you install
High install friction. Package is abandoned as of 2021-06-14 with no updates since the latest release, creating maintenance risk for compatibility with current Python versions and Azure API changes.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions, making it safe to adopt from a licensing standpoint.
Quickstart
pip install logging-azure-rest
import logging
from logging_azure.handler import AzureLogServiceHandler
handler = AzureLogServiceHandler()
logger = logging.getLogger(__name__)
logger.addHandler(handler)
logger.info('Message to Azure')
Requires environment variables AZURE_LOG_CUSTOMER_ID, AZURE_LOG_SHARED_KEY, and AZURE_LOG_DEFAULT_NAME to be set before instantiating the handler.
Verify before relying
- Whether requests and injector are actually declared as runtime dependencies, since they appear only in description text and not in the deps.runtime list.
- Current compatibility with modern Azure SDK versions and authentication methods beyond the REST API approach.
- Whether the abandoned status affects compatibility with current Python 3.x releases or Azure API changes.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,887 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,723,691/month — #3,614 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: logging-azure-rest-1.3.0.tar.gz
Keywords: utils
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
azure-monitor-ingestionSends custom logs and structured data to Azure…
permissive · top 5,000 on PyPI
azure-monitor-events-extensionSends custom events to Azure Application…
permissive · top 15,000 on PyPI
django-log-formatter-asimFormats Django application logs in Azure…
permissive · top 15,000 on PyPI
opencensus-ext-azureExports logs, metrics, and traces from Python…
permissive · top 5,000 on PyPI
logzio-python-handlerA Python logging handler that sends logs in…
permissive · top 5,000 on PyPI
applicationinsightsSends telemetry events, metrics, and traces to…
permissive · top 5,000 on PyPI
splunk-handlerA Python logging handler that sends log events…
permissive · top 5,000 on PyPI
loggerA Python logging helper that provides utilities…
unclear · top 15,000 on PyPI
python-logstash-asyncAsynchronous Python logging handler that…
permissive · top 5,000 on PyPI
azure-monitor-queryExecutes read-only queries against Azure…
permissive · top 5,000 on PyPI