PHPackages                             syntaxphoenix/monolog-opensearch-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. syntaxphoenix/monolog-opensearch-handler

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

syntaxphoenix/monolog-opensearch-handler
========================================

OpenSearch handler for Monolog

2.0.0(1y ago)11.4k↓33.3%MITPHP

Since Jan 25Pushed 11mo agoCompare

[ Source](https://github.com/SyntaxPhoenix/monolog-opensearch-handler)[ Packagist](https://packagist.org/packages/syntaxphoenix/monolog-opensearch-handler)[ RSS](/packages/syntaxphoenix-monolog-opensearch-handler/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (3)Versions (14)Used By (0)

[![Contributors](https://camo.githubusercontent.com/d66ace9938046a2caf555e0d4cd37668ec4fe0558ed67e8aa999ed826346bb5d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f53796e74617850686f656e69782f6d6f6e6f6c6f672d6f70656e7365617263682d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://github.com/SyntaxPhoenix/monolog-opensearch-handler/graphs/contributors)[![Stargazers](https://camo.githubusercontent.com/587ca37bad8147d539d79fef9cb0d34673137c342bbe9ac6344166886c677114/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f53796e74617850686f656e69782f6d6f6e6f6c6f672d6f70656e7365617263682d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://github.com/SyntaxPhoenix/monolog-opensearch-handler/stargazers)[![Issues](https://camo.githubusercontent.com/f31db58be13c55546527da99cc69852472231c9cb38eb95b4bf8ea19f248f040/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f53796e74617850686f656e69782f6d6f6e6f6c6f672d6f70656e7365617263682d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://github.com/SyntaxPhoenix/monolog-opensearch-handler/issues)[![GPLv3 License](https://camo.githubusercontent.com/829c26aa8b202d567203f280b9b1d5229bbfa39a4e4d55e893b364e829b8034f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c76332d626c75652e7376673f7374796c653d666c61742d737175617265)](https://www.gnu.org/licenses/gpl-3.0)

 [ ![Logo](https://camo.githubusercontent.com/17b251bca3dbc91525b38f3b9f83f1493cd654fe13c628fc882c0a4d22abd46f/68747470733a2f2f63646e2e73796e74617870686f656e69782e636f6d2f696d616765732f6c6f676f2e706e67) ](https://github.com/SyntaxPhoenix/monolog-opensearch-handler)

### SyntaxPhoenix OpenSearchHandler for Monolog

[](#syntaxphoenix-opensearchhandler-for-monolog)

 Table of Contents
-----------------

[](#table-of-contents)

1. [About The Project](#about-the-project)
    - [Built With](#built-with)
2. [Usage](#usage)
    - [Installation](#installation)
    - [Monolog versions](#monolog-versions)
3. [Roadmap](#roadmap)
4. [Contributing](#contributing)
5. [License](#license)
6. [Contact](#contact)

About The Project
-----------------

[](#about-the-project)

The OpenSearchHandler for [monolog](https://github.com/Seldaek/monolog) adds a handler, that is able to send logs to a [OpenSearch](https://opensearch.org/) instance. If needed it can also get integrated with Symfony. The initial version is forked from [geangontijo/monolog-opensearch-handler](https://github.com/geangontijo/monolog-opensearch-handler).

### Built With

[](#built-with)

- [geangontijo/monolog-opensearch-handler](https://github.com/geangontijo/monolog-opensearch-handler)

Usage
-----

[](#usage)

```
$logger = new \Monolog\Logger('application');
$logger->pushHandler(new \SyntaxPhoenix\MonologOpenSearchHandler\OpenSearchHandler(
    'http://localhost:9200',
    'username',
    'password',
    'index_name',
    Level::Debug,
    \OpenSearch\ClientBuilder::create()->setHosts([
        'http://localhost:9200'
    ])->build()
));

$logger->info('Hello World');
```

For usage with Symfony configure the handler within your services.yaml:

```
    SyntaxPhoenix\MonologOpenSearchHandler\OpenSearchHandler:
        arguments:
            $endpoint: 'opensearch:9200'
            $index: "index"
            $username: 'username'
            $password: 'password'
            $bubble: true
```

The handler can then be used within monolog.yaml:

```
monolog:
    handlers:
        main:
            handler: opensearchhandler
        opensearchhandler:
            type: service
            id: SyntaxPhoenix\MonologOpenSearchHandler\OpenSearchHandler
```

### Installation

[](#installation)

```
composer require syntaxphoenix/monolog-opensearch-handler

```

Monolog versions
----------------

[](#monolog-versions)

**Monolog v1****Monolog v2****Monolog v3****monolog-opensearch-handler v1**✓**monolog-opensearch-handler v2**✓Roadmap
-------

[](#roadmap)

See the [open issues](https://github.com/SyntaxPhoenix/monolog-opensearch-handler/issues) for a list of proposed features (and known issues).

Contributing
------------

[](#contributing)

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

License
-------

[](#license)

Distributed under the GPLv3 License. See `LICENSE` for more information.

Contact
-------

[](#contact)

[@SyntaxPhoenix](https://twitter.com/SyntaxPhoenix) -

Project Link:

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance47

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Recently: every ~0 days

Total

13

Last Release

342d ago

Major Versions

1.0.0 → v2.0.0.x-dev2025-01-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/403b64fd31db600e85fbb20c4ee02cee268727080568338a5ddcf68a161e033f?d=identicon)[SyntaxPhoenix](/maintainers/SyntaxPhoenix)

---

Top Contributors

[![geangontijo](https://avatars.githubusercontent.com/u/64979293?v=4)](https://github.com/geangontijo "geangontijo (8 commits)")[![YellowPhoenix18](https://avatars.githubusercontent.com/u/9165159?v=4)](https://github.com/YellowPhoenix18 "YellowPhoenix18 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/syntaxphoenix-monolog-opensearch-handler/health.svg)

```
[![Health](https://phpackages.com/badges/syntaxphoenix-monolog-opensearch-handler/health.svg)](https://phpackages.com/packages/syntaxphoenix-monolog-opensearch-handler)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k189.7M258](/packages/symfony-monolog-bridge)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M517](/packages/illuminate-log)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
