PHPackages                             kingfisherdirect/magento2-elasticsearch-logger - 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. kingfisherdirect/magento2-elasticsearch-logger

ActiveMagento2-module

kingfisherdirect/magento2-elasticsearch-logger
==============================================

v1.0.2(4y ago)191MITPHP

Since Jun 3Pushed 4y ago2 watchersCompare

[ Source](https://github.com/kingfisherdirect/magento2-elasticsearch-logger)[ Packagist](https://packagist.org/packages/kingfisherdirect/magento2-elasticsearch-logger)[ RSS](/packages/kingfisherdirect-magento2-elasticsearch-logger/feed)WikiDiscussions master Synced 3d ago

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

Magento 2 Elasticsearch Logger
==============================

[](#magento-2-elasticsearch-logger)

> A Magento 2 module to send logs directly to Elasticsearch

Installation
------------

[](#installation)

1. Install composer package

```
composer require kingfisherdirect/magento2-elasticsearch-logger
```

2. Then run

```
bin/magento setup:upgrade
```

3. Configure module through `bin/magento setup:install` or `env.php` file

```
bin/magento setup:install \
    --elasticsearch-logger-config='{"hosts": ["http://elasticsearch:9200"]}'\
    --elasticsearch-logger-index='magento2-logs'
```

4. Enable Handler in `app/etc/di.xml`

```

            main

                Magento\Framework\Logger\Handler\System
                Magento\Framework\Logger\Handler\Debug
                Magento\Framework\Logger\Handler\Syslog

                KingfisherDirect\ElasticSearchLogger\Handler\ElasticSearchHandler

```

Configuration
-------------

[](#configuration)

Module is configurable through `app/etc/env.php` file as Elasticsearch details may be different per deployment.

To set the values it's best to use setup:install script as described in installation

```
bin/magento setup:install \
    --elasticsearch-logger-config='{"hosts": ["http://elasticsearch:9200"]}' \
    --elasticsearch-logger-index='magento2-logs'
```

#### elasticsearch-logger-config

[](#elasticsearch-logger-config)

This is JSON configuration that is then deserialized and used as a configuration to build Elasticsearch Client. Basic setup would be as follows:

```
{
    "hosts": [
        "http://elasticsearch.example.org:9200"
    ]
}
```

In case you use elasti.co service you'll then you should use this config:

```
{
    "elasticCloudId": "ID",
    "basicAuthentication": ["USER", "PASSWORD"]
}
```

Internally it uses `Elasticsearch\ClientBuilder::fromConfig()` method for configuration, so you may want to dig into code or check library on

If this value is empty, no logs will be sent to Elasticsearch.

In `env.php` this value is stored as PHP array, not string containing JSON

#### elasticsearch-logger-index

[](#elasticsearch-logger-index)

*Default: `monolog`*

Name of the index where logs should go

Tests
-----

[](#tests)

Not yet any.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

2

Last Release

1805d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13ef32eef650c9bddea30c304036ba5bf091f051be75c05e0abb3aad6628a7e1?d=identicon)[lumnn](/maintainers/lumnn)

---

Top Contributors

[![lumnn](https://avatars.githubusercontent.com/u/2505114?v=4)](https://github.com/lumnn "lumnn (3 commits)")

### Embed Badge

![Health badge](/badges/kingfisherdirect-magento2-elasticsearch-logger/health.svg)

```
[![Health](https://phpackages.com/badges/kingfisherdirect-magento2-elasticsearch-logger/health.svg)](https://phpackages.com/packages/kingfisherdirect-magento2-elasticsearch-logger)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)

PHPackages © 2026

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