muhammadnurmatov/amqp-gelf-logger
Larablocks Analysis
muhammadnurmatov/amqp-gelf-logger works with Laravel 10 to 13 (latest release v2.2.5, Oct 29, 2026).
Laravel 9 in earlier releases.
Recommendation checks
PromisingPromising: maintained and up to date, meets 2 of 4 checks; not yet widely used.
- Works with Laravel 13, the current version
- Released in the last 12 months (Oct 29, 2026)
- 203 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Actively maintained- Last stable release: Oct 29, 2026.
- 3 releases in the last 12 months.
- First released: Apr 6, 2025.
- Monthly downloads: 203.
- 1 open issue on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require muhammadnurmatov/amqp-gelf-logger |
|
| Latest Version: | v2.2.5 |
| PHP: | ^8.2 |
| Laravel: | 10 – 13 |
| Older releases: | 9 |
| License: | MIT |
| Last Updated: | Oct 29, 2026 |
| Links: | GitHub · Packagist |
Laravel AMQP GELF Logger — Send Logs to Graylog via AMQP or GELF
A flexible logger for Laravel 10+, sending logs via AMQP or GELF directly to Graylog for real-time centralized logging and monitoring.
🚀 Installation
Install the package via Composer:
composer require muhammadnurmatov/amqp-gelf-logger
Configuration
1. Config File
You can manually create the config file at config/amqp-gelf-logger.php:
2. Edit config/amqp-gelf-logger.php
return [
'transport' => env('AMQP_GELF_TRANSPORT', 'tcp'),
'level' => env('RABBITMQ_LOG_LEVEL', 'debug'),
'path' => storage_path('logs/amqp-gelf-logger/logs.log'),
'days' => 14,
'rabbitmq' => [
'host' => env('LOG_RABBITMQ_HOST'),
'port' => env('LOG_RABBITMQ_PORT'),
'user' => env('LOG_RABBITMQ_USER'),
'password' => env('LOG_RABBITMQ_PASSWORD'),
'vhost' => env('LOG_RABBITMQ_VHOST', '/'),
'exchange' => env('LOG_RABBITMQ_EXCHANGE'),
'exchange_type' => env('RABBITMQ_EXCHANGE', 'topic'),
'routing_key' => env('LOG_RABBITMQ_EXCHANGE'),
'use_tls' => env('LOG_RABBITMQ_USE_TLS', false),
'verify_peer' => env('LOG_RABBITMQ_VERIFY_PEER', false),
'verify_peer_name' => env('LOG_RABBITMQ_VERIFY_PEER_NAME', false),
'cafile' => env('LOG_RABBITMQ_CAFILE', ''),
'local_cert' => env('LOG_RABBITMQ_LOCAL_CERT', ''),
'local_pk' => env('LOG_RABBITMQ_LOCAL_PK', ''),
],
'udp' => [
'host' => env('LOG_UDP_HOST', '127.0.0.1'),
'port' => env('LOG_UDP_PORT', 555),
'max_buffer' => env('LOG_UDP_MAX_BUFFER', 1024*20), //20kb
],
'tcp' => [
'host' => env('LOG_TCP_HOST', '127.0.0.1'),
'port' => env('LOG_TCP_PORT', 555),
]
];
transport - the driver to use for sending messages
If you don't want to use SSL, set use_tls = false in the config.
Logging Channel Setup
Add a custom logging channel in config/logging.php:
'amqp' => [
'driver' => 'custom',
'via' => \MuhammadN\AmqpGelfLogger\AmqpGelfLogger::class,
'name' => 'graylog',
'level' => 'debug',
'path' => storage_path('logs/graylog.log'),
'days' => 14,
],
Usage
You can use the custom logger like any other Laravel log channel:
use Illuminate\Support\Facades\Log;
Log::channel('amqp')->info('User logged in', ['user_id' => 1]);
Log::channel('amqp')->error('Something broke!', ['exception' => $exception]);
Expected Log Structure
{
"timestamp": "2025-04-07 15:09:12",
"env_mode": "production",
"level": "info",
"channel": "amqp",
"source": "Test",
"short_message": "User logged in",
"context": {
"user_id": 1
},
"server_ip": "127.0.0.1"
}
➕ Optional
If you want to send your default log levels (e.g., error, info, debug) via this handler, you should install this package:
composer require anboz/custom-logger
License
This package is open-sourced software licensed under the MIT license.
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.2.5 | ^8.2 | ^10.0| | MIT | |
| v2.2.4 | ^8.0 | ^9.0| | MIT | |
| v2.2.3 | ^8.0 | ^9.0| | MIT | |
| v2.2.2 | ^8.0 | ^9.0| | MIT | |
| v2.2.1 | ^8.0 | ^9.0| | MIT | |
| v2.2.0 | ^8.0 | ^9.0| | MIT | |
| v2.1.4 | ^8.0 | ^9.0| | MIT | |
| v2.1.3 | ^8.0 | ^9.0| | MIT | |
| v2.1.2 | ^8.0 | ^9.0| | MIT | |
| v2.0.1 | ^8.0 | ^9.0| | MIT | |
| v2.0.0 | ^8.0 | ^9.0| | MIT | |
| v1.1.5 | ^8.0 | ^9.0| | MIT | |
| v1.1.4 | ^8.0 | ^9.0| | MIT | |
| v1.1.3 | ^8.0 | ^9.0| | MIT | |
| v1.1.2 | ^8.0 | ^9.0| | MIT | |
| v1.1.1 | ^8.0 | ^9.0| | MIT | |
| v1.1.0 | ^8.0 | ^9.0| | MIT | |
| v1.0.10 | ^8.0 | ^9.0| | MIT | |
| v1.0.9 | ^8.0 | ^9.0| | MIT | |
| v1.0.8 | ^8.0 | ^9.0| | MIT | |
| v1.0.7 | ^8.0 | ^9.0| | MIT | |
| v1.0.6 | ^8.0 | ^9.0| | MIT | |
| v1.0.5 | ^8.0 | ^9.0| | MIT | |
| v1.0.4 | ^8.0 | ^9.0| | MIT | |
| 1.0.3 | ^8.0 | ^9.0| | MIT | |
| 1.0.2 | ^8.0 | ^9.0| | MIT | |
| 1.0.1 | ^8.0 | ^9.0| | MIT | |
| 1.0.0 | ^8.0 | ^9.0| | MIT |