Download the PHP package customergauge/logstash without Composer
On this page you can find all versions of the php package customergauge/logstash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download customergauge/logstash
More information about customergauge/logstash
Files in customergauge/logstash
Package logstash
Short Description APM & Logging for Laravel powered by Logstash
License MIT
Informations about the package logstash
Laravel Logstash APM 📋
This library adapts Monolog for Laravel to communicate with Logstash for logging & metrics.
Installation
Usage
Logs
In the logging.php
, define a custom channel for Laravel
This will instruct Laravel to write any log to Logstash using a TCP
connection on port 9601. TCP will guarantee log delivery. Processors
allow to manipulate the $record
array that gets sent to Logstash
as JSON. The processor
attribute accept http
or queue
values.
Metrics
The library also allows to collect application metrics using an
apm
configuration inside the logging.php
file.
For metrics, the above configuration will instruct Laravel to use an UDP conncetion as a way to fire-and-forget. Delivery is not guaranteed, but code execution is not delayed by acknowledging metric delivery.
Processors
You may configure Http and Queue processors. Processors must
implement the \CustomerGauge\Logstash\Processors\HttpProcessorInterface
or the \CustomerGauge\Logstash\Processors\QueueProcessorInterface
.
They offer the chance to modify the $record
that will be
streamed to Logstash by using the ProcessorInterface
system
provided by Monolog.
All versions of logstash with dependencies
ext-json Version *
monolog/monolog Version >=3.0
illuminate/contracts Version >=10.0
illuminate/support Version >=10.0
illuminate/config Version >=10.0
illuminate/http Version >=10.0