$npx skillfedfor your agent

CMRESHandler

Elasticsearch Log handler for the logging library

With conditionsPyPI LibrariesReleased Oct 2017313.4K downloads / moApache2Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — CMRESHandler-1.0.0-py2-none-any.whl · CMRESHandler-1.0.0-py3-none-any.whl
v1.0.0 · released 2017-10-08 · 3 runtime deps: elasticsearch, enum, requests

Yes, if you are already running Elasticsearch and need a lightweight Python logging handler to send logs directly to it. No, if you require active maintenance or support for modern Elasticsearch versions—the package is dormant since 2017-10-08 and has not been updated to verify compatibility with current Elasticsearch releases. Consider it a stable but unsupported tool; test thoroughly with your Elasticsearch version before production use.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a running Elasticsearch server accessible at the configured host and port; optional dependencies (requests-kerberos, requests-aws4auth) needed only for Kerberos or AWS IAM authentication.
  • Low install friction with pure-Python wheels available for both Python 2 and 3.
  • However, the package is dormant—last release was 2017-10-08 and no commits since 2024-06-06.

License · maintenance · safety

Apache2 (permissive) — Licensed under Apache2 (permissive), so you can use, modify, and distribute the package freely in commercial and open-source projects without restrictive obligations.

last release 2017-10-08 (3232 days) · last repo commit 2024-06-06 · 235 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 313,416 downloads/mo, #7,715 on PyPI

Verify before relying

pip install CMRESHandler

from cmreslogging.handlers import CMRESHandler
import logging

handler = CMRESHandler(hosts=[{'host': 'localhost', 'port': 9200}],
                       auth_type=CMRESHandler.AuthType.NO_AUTH,
                       es_index_name="my_python_index")
log = logging.getLogger("PythonTest")
log.addHandler(handler)
log.info("This is logged to Elasticsearch")
  • Compatibility with modern Elasticsearch versions given the last release was 2017-10-08.
  • Whether the elasticsearch dependency pins to a specific major version or accepts current releases.
  • Support status for Python versions beyond 2.7 and 3.6 as stated in classifiers.
Same gist for agents: .md · .json

What it is and what it does

CMRESHandler is a logging handler that bridges Python's standard logging library and Elasticsearch, allowing you to send log records directly to Elasticsearch indices instead of (or in addition to) files or stdout. It wraps log entries as JSON documents and buffers them before flushing to Elasticsearch, supporting optional authentication (basic, Kerberos, AWS IAM) and SSL encryption.

The handler integrates with Django logging configuration and lets you attach custom fields to individual log records for instrumentation—for example, timing metrics or request IDs—which then become queryable fields in Elasticsearch. It preserves standard logging metadata like exception tracebacks, method names, and line numbers, making it useful for centralized log aggregation and analysis.

Use it for

  • Centralize application logs from multiple Python services into a single Elasticsearch cluster for unified search and analysis.
  • Instrument Django applications to log database query times and SQL statements alongside application events for performance monitoring.
  • Add custom fields to logs on a per-message basis to enable rich filtering and aggregation in Elasticsearch.
  • Replace file-based logging with Elasticsearch to avoid log rotation and disk management overhead in containerized environments.
  • Combine Elasticsearch logging with other handlers to send critical errors to files while routing all logs to Elasticsearch for analysis.

Worth the install?

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

With conditions

Yes, if you are already running Elasticsearch and need a lightweight Python logging handler to send logs directly to it.

No, if you require active maintenance or support for modern Elasticsearch versions—the package is dormant since 2017-10-08 and has not been updated to verify compatibility with current Elasticsearch releases. Consider it a stable but unsupported tool; test thoroughly with your Elasticsearch version before production use.

Install

cmreshandler on PyPI

Before you install

Low install friction with pure-Python wheels available for both Python 2 and 3. However, the package is dormant—last release was 2017-10-08 and no commits since 2024-06-06. Elasticsearch client compatibility with modern versions is unverified.

Requires a running Elasticsearch server accessible at the configured host and port; optional dependencies (requests-kerberos, requests-aws4auth) needed only for Kerberos or AWS IAM authentication.

License in practice

Licensed under Apache2 (permissive), so you can use, modify, and distribute the package freely in commercial and open-source projects without restrictive obligations.

Quickstart

pip install CMRESHandler

from cmreslogging.handlers import CMRESHandler
import logging

handler = CMRESHandler(hosts=[{'host': 'localhost', 'port': 9200}],
                       auth_type=CMRESHandler.AuthType.NO_AUTH,
                       es_index_name="my_python_index")
log = logging.getLogger("PythonTest")
log.addHandler(handler)
log.info("This is logged to Elasticsearch")

Verify before relying

  • Compatibility with modern Elasticsearch versions given the last release was 2017-10-08.
  • Whether the elasticsearch dependency pins to a specific major version or accepts current releases.
  • Support status for Python versions beyond 2.7 and 3.6 as stated in classifiers.

Package facts

LicenseApache2 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
elasticsearchenumrequests
MaintenanceDormant 3,232 days since the last release
Last repo commit
First released
Downloads313,416 / month, #7,715 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.6Topic :: Internet :: Log AnalysisTopic :: Software Development :: LibrariesTopic :: System :: Logging

Evidence: CMRESHandler-1.0.0-py2-none-any.whl; CMRESHandler-1.0.0-py3-none-any.whl

Tags

Capabilities
elasticsearch logging handlerpython logs to elasticsearchelasticsearch appenderstructured logging elasticsearchelasticsearch log integrationpython logging elasticsearchlog handler elasticsearch
Topics
elasticsearchloggingdjango-integration
PyPI keywords
loggingelasticsearchhandlerlogdjangoinstrumentation

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 › “elasticsearch logging handler”

  • CMRESHandlerProvides a Python logging handler that sends log records directly to…
  • JSON-log-formatterFormats Python logging records as JSON, enabling structured log…
  • aliyun-log-python-sdkPython SDK for Alibaba Cloud Log Service that wraps the REST API to…

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

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also opensearch-logger · python3-logstash · opentelemetry-instrumentation-elasticsearch · google-cloud-appengine-logging · django-opensearch-dsl · elasticsearch · elasticsearch8-dsl · elasticsearch7 · django-elasticsearch-dsl-drf · opentelemetry-instrumentation-logging