PHPackages                             ccaglayan/elasticsearch-for-monolog - 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. ccaglayan/elasticsearch-for-monolog

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

ccaglayan/elasticsearch-for-monolog
===================================

A Monolog handler and formatter that makes use of the elasticsearch/elasticsearch package

1.0.2(6y ago)09MITPHP

Since Mar 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ccaglayan/elasticsearch-for-monolog)[ Packagist](https://packagist.org/packages/ccaglayan/elasticsearch-for-monolog)[ RSS](/packages/ccaglayan-elasticsearch-for-monolog/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Elasticsearch For Monolog
=========================

[](#elasticsearch-for-monolog)

A Monolog handler and formatter that makes use of the elasticsearch/elasticsearch package

#### Composer require command

[](#composer-require-command)

`composer require ccaglayan/elasticsearch-for-monolog`

Usage
-----

[](#usage)

It is fairly easy to use. I'll throw in an example.

```
use Elasticsearch\ClientBuilder;
use Monolog\Logger;

    $config = ['127.0.0.1:9200'];
    $client = ClientBuilder::create()->setHosts($config)->build();
    $options = [
        'index' => 'logs_monolog',
        'type' => 'logs_doc'
    ];
    $handler = new \ElasticSearch4Monolog\Handler\ElasticsearchHandler($client, $options);
    $logger = new Logger('monologElastic');
    $logger->pushHandler($handler);
```

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

[](#contributing)

Pull requests and issues are open!

License
-------

[](#license)

Elasticsearch For Monolog handler is released under the MIT License. See the bundled LICENSE file for details.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

2255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c1ce22cbe0518b684030c006a33bd5839f881c45019ee1e050e3556bddf9cbc?d=identicon)[ccaglayan](/maintainers/ccaglayan)

---

Top Contributors

[![ccaglayan](https://avatars.githubusercontent.com/u/108281?v=4)](https://github.com/ccaglayan "ccaglayan (2 commits)")

---

Tags

elasticelasticsearchlogloggingmonologmonolog-formattermonolog-handlerpsr-4logloggingelasticsearchelasticloggerPSR-4psr4monolog

### Embed Badge

![Health badge](/badges/ccaglayan-elasticsearch-for-monolog/health.svg)

```
[![Health](https://phpackages.com/badges/ccaglayan-elasticsearch-for-monolog/health.svg)](https://phpackages.com/packages/ccaglayan-elasticsearch-for-monolog)
```

###  Alternatives

[atrapalo/monolog-elasticsearch

A Monolog handler and formatter that makes use of the elasticsearch/elasticsearch package

1123.0k](/packages/atrapalo-monolog-elasticsearch)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)[amphp/log

Non-blocking logging for PHP based on Amp, Revolt, and Monolog.

402.6M70](/packages/amphp-log)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.0M18](/packages/apix-log)

PHPackages © 2026

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