PHPackages                             ennnnny/laravel-es-log - 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. ennnnny/laravel-es-log

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

ennnnny/laravel-es-log
======================

Elasticsearch logger handler

v1.0.7(5y ago)124MITPHPPHP ^7.2CI failing

Since Apr 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ennnnny/laravel-es-log)[ Packagist](https://packagist.org/packages/ennnnny/laravel-es-log)[ RSS](/packages/ennnnny-laravel-es-log/feed)WikiDiscussions master Synced yesterday

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

laravel-es-log
==============

[](#laravel-es-log)

Elasticsearch logger for Laravel

Installation
============

[](#installation)

```
$ composer require ennnnny/laravel-es-log
$ php artisan vendor:publish --tag=ennnnny.es_log
```

Config
======

[](#config)

You can modify config in `config/logger.php`.

Now we can add the `channel` of `channels` in `config/logging.php` file.

```
'channels' => [
    'elastic' => [
        'driver' => 'monolog',
        'handler' => \Monolog\Handler\ElasticsearchHandler::class,
        'handler_with' => [
            'options' => config('es_log.options'),
            'level' => config('es_log.level'),
            'bubble' => config('es_log.bubble')
        ],
        'formatter' => \Eslog\Formatter\EslogFormatter::class,
    ],
],
```

Now define the environment variable in `.env` file like this:

```
LOG_CHANNEL=elastic
ELASTICSEARCH_LOG_LEVEL=200
ELASTICSEARCH_HOST=localhost
ELASTICSEARCH_PORT=9200
ELASTICSEARCH_SCHEME=http
ELASTICSEARCH_USER=
ELASTICSEARCH_PASS=

```

Credits
-------

[](#credits)

- [betterde](https://github.com/betterde/logger)
- [ahmedofali](https://github.com/ahmedofali/laravel-elk-log)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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 ~33 days

Recently: every ~57 days

Total

8

Last Release

2000d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1a7e188cda99252b839b00496782d63f517455167168cbb33d7360896bbd91e?d=identicon)[ennnnny](/maintainers/ennnnny)

---

Top Contributors

[![ennnnny](https://avatars.githubusercontent.com/u/9587073?v=4)](https://github.com/ennnnny "ennnnny (14 commits)")

---

Tags

loglaravelelasticsearchlogger

### Embed Badge

![Health badge](/badges/ennnnny-laravel-es-log/health.svg)

```
[![Health](https://phpackages.com/badges/ennnnny-laravel-es-log/health.svg)](https://phpackages.com/packages/ennnnny-laravel-es-log)
```

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[betterde/logger

Elasticsearch logger handler

3230.4k](/packages/betterde-logger)[atrapalo/monolog-elasticsearch

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

1123.0k](/packages/atrapalo-monolog-elasticsearch)[yzen.dev/mono-processor

This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.

116.1k](/packages/yzendev-mono-processor)

PHPackages © 2026

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