$npx skillfedfor your agent

opensearch-logger

OpenSearch logging handler

Worth itPyPI LibrariesReleased Aug 2025154.6K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — opensearch_logger-1.3.1-py3-none-any.whl
v1.3.1 · released 2025-08-13 · Python >=3.9 · 1 runtime deps: opensearch-py

Yes. The package is production-stable (marked as such since 2021), has no known vulnerabilities, low install friction, and solves a clear problem—direct Python-to-OpenSearch logging without middleware. The aging maintenance status (366 days since release) is mitigated by a recent repository commit on 2025-08-13. Install it if you need to send Python logs to OpenSearch and want to avoid Fluentd or Logstash.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires an accessible OpenSearch instance; at least one connection parameter (e.g., hosts) must be provided to the handler constructor.
  • Low install friction; depends only on opensearch-py.
  • Marked as aging (366 days since last release), but repository is active with a recent commit on 2025-08-13 and no known vulnerabilities.

License · maintenance · safety

permissive license (permissive) — Apache License 2.0 (permissive). You may use, modify, and distribute this package freely in commercial and private projects, provided you include the license notice and state significant changes.

last release 2025-08-13 (366 days) · last repo commit 2025-08-13 · 28 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 154,558 downloads/mo, #10,850 on PyPI

Verify before relying

pip install opensearch-logger

import logging
from opensearch_logger import OpenSearchHandler

handler = OpenSearchHandler(
    index_name="my-logs",
    hosts=["https://localhost:9200"],
    http_auth=("admin", "admin"),
    use_ssl=True,
    verify_certs=False
)
logger = logging.getLogger(__name__)
logger.addHandler(handler)
logger.info("Message indexed to OpenSearch")
  • Performance characteristics under high log volume or with large buffer sizes
  • Compatibility with OpenSearch versions beyond 1.0 (stated as production-tested since OpenSearch 1.0 release)
Same gist for agents: .md · .json

What it is and what it does

opensearch-logger is a Python logging handler that integrates directly with OpenSearch, bypassing the need for log aggregation middleware like Fluentd or Logstash. It formats all log records according to the Elastic Common Schema (ECS) standard, making logs searchable and aggregatable in OpenSearch. The handler buffers log records and flushes them in batches, with configurable buffer size and flush frequency to balance throughput and latency.

The library has been in production use since OpenSearch 1.0 and supports modern Python versions (3.9 through 3.13). It integrates with Python's standard logging module, allowing you to add it as a handler to any logger and configure it via logging.config or Django settings. It supports multiple authentication methods including basic auth, AWS IAM, and Kerberos, and can index into either traditional indices with date-based rotation or OpenSearch data streams.

Use it for

  • Centralize application logs from Python services directly into OpenSearch for real-time search and analysis without separate log aggregation infrastructure.
  • Index structured log records with custom fields via the extra parameter to make application metrics searchable and aggregatable in OpenSearch.
  • Configure logging via Django settings or logging.config to send application logs to OpenSearch alongside file or console handlers.
  • Authenticate to AWS OpenSearch domains using IAM credentials or connect to Kerberos-protected OpenSearch clusters without proxy layers.
  • Use data streams for log indexing to let OpenSearch manage index rollover automatically, simplifying operational overhead for high-volume logging.

Worth the install?

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

Worth it

Yes.

The package is production-stable (marked as such since 2021), has no known vulnerabilities, low install friction, and solves a clear problem—direct Python-to-OpenSearch logging without middleware. The aging maintenance status (366 days since release) is mitigated by a recent repository commit on 2025-08-13. Install it if you need to send Python logs to OpenSearch and want to avoid Fluentd or Logstash.

Install

opensearch-logger on PyPI

Before you install

Low install friction; depends only on opensearch-py. Marked as aging (366 days since last release), but repository is active with a recent commit on 2025-08-13 and no known vulnerabilities.

Requires an accessible OpenSearch instance; at least one connection parameter (e.g., hosts) must be provided to the handler constructor.

License in practice

Apache License 2.0 (permissive). You may use, modify, and distribute this package freely in commercial and private projects, provided you include the license notice and state significant changes.

Quickstart

pip install opensearch-logger

import logging
from opensearch_logger import OpenSearchHandler

handler = OpenSearchHandler(
    index_name="my-logs",
    hosts=["https://localhost:9200"],
    http_auth=("admin", "admin"),
    use_ssl=True,
    verify_certs=False
)
logger = logging.getLogger(__name__)
logger.addHandler(handler)
logger.info("Message indexed to OpenSearch")

Verify before relying

  • Performance characteristics under high log volume or with large buffer sizes
  • Compatibility with OpenSearch versions beyond 1.0 (stated as production-tested since OpenSearch 1.0 release)

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
opensearch-py
MaintenanceAging 366 days since the last release
Last repo commit
First released
Downloads154,558 / month, #10,850 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 :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Internet :: Log AnalysisTopic :: Software Development :: LibrariesTopic :: System :: Logging

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

Tags

Capabilities
opensearch logging handlersend python logs to opensearchecs formatted loggingopensearch python integrationdirect opensearch log indexingpython logging to opensearchopensearch handler
Topics
opensearchecs-logginglog-handler
PyPI keywords
handlerloggerloggingopensearch

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

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 CMRESHandler · opensearch-py · opensearch-dsl · ecs-logging · concurrent-log-handler · django-opensearch-dsl · python3-logstash · cloudwatch · elasticsearch-dbapi · opensearch-mcp-server-py