PHPackages                             umang/laravel-logging-logstash - 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. umang/laravel-logging-logstash

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

umang/laravel-logging-logstash
==============================

logging stack for Laravel

v2.0.4(4y ago)06MITPHP

Since Apr 7Pushed 3y agoCompare

[ Source](https://github.com/umangbp/laravel-logging-logstash)[ Packagist](https://packagist.org/packages/umang/laravel-logging-logstash)[ RSS](/packages/umang-laravel-logging-logstash/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Logging
===============

[](#laravel-logging)

[![Latest Stable Version](https://camo.githubusercontent.com/e820a3f16caa2e6da9cfa26695098deed32427639be44894cd748ecf3f29f2bc/68747470733a2f2f706f7365722e707567782e6f72672f6865616c7468656e67696e652f6c61726176656c2d6c6f6767696e672f76657273696f6e)](https://packagist.org/packages/healthengine/laravel-logging)[![Total Downloads](https://camo.githubusercontent.com/76ac8826442ccf99ead64d479f1a020c8fbf09b7c278e0aeddf611575e2b11eb/68747470733a2f2f706f7365722e707567782e6f72672f6865616c7468656e67696e652f6c61726176656c2d6c6f6767696e672f646f776e6c6f616473)](https://packagist.org/packages/healthengine/laravel-logging)[![Build Status](https://camo.githubusercontent.com/aaccf03abc05bce992cc9bb76d3a322b3ccb4a4fa40f7288605c412ec058b803/68747470733a2f2f7472617669732d63692e636f6d2f4865616c7468456e67696e6541552f6c61726176656c2d6c6f6767696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/HealthEngineAU/laravel-logging)[![Coverage Status](https://camo.githubusercontent.com/e692abb0de68042d7ae40004df28c01fd25e8ac474f031dbb850d8276e84ed0f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4865616c7468456e67696e6541552f6c61726176656c2d6c6f6767696e672f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/HealthEngineAU/laravel-logging?branch=master)

This is a custom package designed for Laravel. It provides a logging stack pre-configured to format for Logstash and adds multiple useful Monolog processors.

It includes the following processors to enrich logs with extra data:

- [MemoryPeakUsageProcessor](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/MemoryPeakUsageProcessor.php)which adds the peak memory usage using the `memory_get_peak_usage()` PHP function,
- [MemoryUsageProcessor](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/MemoryUsageProcessor.php)which adds the current memory usage using the `memory_get_usage()` PHP function,
- [UidProcessor](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/UidProcessor.php) which adds a unique ID to each instance of the logger class - useful to track all logs across a single request,
- [WebProcessor](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/WebProcessor.php) which adds the current request URI, request method and client IP to a log record,
- [BuildTagProcessor](https://github.com/HealthEngineAU/laravel-logging/blob/master/src/Processors/BuildTagProcessor.php)which is designed for use in docker and will add the image tag to the logs.
- [IntrospectionProcessor](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/IntrospectionProcessor.php) which adds the file, class, function and line where the log was triggered.

Usage
-----

[](#usage)

A `logstash` and `stdout` logger have been made available for use as logging channels. You can use these in a stack along with some others or use them standalone. Simply set your `LOG_CHANNEL` environment variable to either of those pre-configured channels.
The `stdout` channel includes a formatter for Logstash, the only difference compared to the `logstash` channel is that the log lines go to STDOUT instead of to a file. This is useful for Laravel queue workers running in docker.

*Note:* The BuildTagProcessor requires you to inject the Docker build tag into `build_tag` key in `config/app.php`. If it is not present, the value is not added to the logs.

License
-------

[](#license)

Laravel Logging is licensed under the MIT license.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~116 days

Recently: every ~179 days

Total

10

Last Release

1542d ago

Major Versions

1.3.0 → 2.0.02020-03-04

### Community

Maintainers

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

---

Top Contributors

[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (5 commits)")[![reececomo](https://avatars.githubusercontent.com/u/7390781?v=4)](https://github.com/reececomo "reececomo (1 commits)")

---

Tags

laravelloggingelasticsearchmonologlogstashkibana

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/umang-laravel-logging-logstash/health.svg)

```
[![Health](https://phpackages.com/badges/umang-laravel-logging-logstash/health.svg)](https://phpackages.com/packages/umang-laravel-logging-logstash)
```

###  Alternatives

[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[nulpunkt/monolog-elasticsearch-logstashformat

Use the logstash formatter with elasticsearch

3570.1k](/packages/nulpunkt-monolog-elasticsearch-logstashformat)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10619.4k](/packages/naoray-laravel-github-monolog)[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)
