PHPackages                             emran/logstash-bundle - 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. emran/logstash-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

emran/logstash-bundle
=====================

Symfony2 Bundle for writing logs to logstash through redis broker/input.

1.0.0(12y ago)91.8k1MITPHPPHP &gt;=5.3.2

Since Oct 6Pushed 10y ago1 watchersCompare

[ Source](https://github.com/phpfour/LogstashBundle)[ Packagist](https://packagist.org/packages/emran/logstash-bundle)[ Docs](http://www.emranhasan.com)[ RSS](/packages/emran-logstash-bundle/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

LogstashBundle
--------------

[](#logstashbundle)

A bundle on top of MonologBundle which provides logging to logstash through redis broker/input.

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

[](#installation)

##### Step 1: Download LogstashBundle

[](#step-1-download-logstashbundle)

Add logstash bundle in your composer.json as below:

```
"require": {
    ...
    "emran/logstash-bundle": "1.0.0"
}
```

Update/install with this command:

```
php composer.phar update "emran/logstash-bundle"

```

##### Step 2: Enable the bundle

[](#step-2--enable-the-bundle)

Register the bundle

```
public function registerBundles()
{
    $bundles = array(
        ...
        new Emran\Bundle\LogstashBundle\EmranLogstashBundle(),
);
```

##### Step 3: Activate the main configs

[](#step-3--activate-the-main-configs)

```
# app/config/config.yml
emran_logstash:
    redis:
        host: localhost
        port: 6379
        list: logstash
        name: myApp

```

How to use ?
------------

[](#how-to-use-)

The bundle adds a new handler to the already register logger service, so there shouldn't be any change in the way you are logging your events:

```
public function indexAction()
{
    $this->get('logger')->debug('Loading index page.');
    return $this->render('TestBundle:Default:index.html.twig');
}
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

4604d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/171715?v=4)[Mohammad Emran](/maintainers/phpfour)[@phpfour](https://github.com/phpfour)

---

Top Contributors

[![phpfour](https://avatars.githubusercontent.com/u/171715?v=4)](https://github.com/phpfour "phpfour (12 commits)")

---

Tags

loglogging

### Embed Badge

![Health badge](/badges/emran-logstash-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/emran-logstash-bundle/health.svg)](https://phpackages.com/packages/emran-logstash-bundle)
```

###  Alternatives

[symfony/monolog-bundle

Symfony MonologBundle

2.9k249.1M1.6k](/packages/symfony-monolog-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[nelmio/js-logger-bundle

Adds logging of JS errors in your Symfony application

1761.2M](/packages/nelmio-js-logger-bundle)[amphp/log

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

402.6M70](/packages/amphp-log)

PHPackages © 2026

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