ravaelles / laravel-filebeat
The middleware for application log with json format and correspond to filebeat log collection
Installs: 4 923
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
pkg:composer/ravaelles/laravel-filebeat
Requires
- php: >=7
- illuminate/support: 5.6.x|5.7.x
Requires (Dev)
- laravel/framework: ^5.5
- phpunit/phpunit: ^4.8|^5.2|^7.0
This package is not auto-updated.
Last update: 2025-10-18 23:52:35 UTC
README
Forked from shallowman/laravel-filebeat
Installation
Require the shallowman/laravel-filebeat package in your composer.json and update your dependencies:
$ composer require shallowman/laravel-filebeat
For laravel >=5.5 that's all. This package supports Laravel new Package Discovery.
Configuration
The defaults are set in config/app-log.php. Copy this file to your own config directory to modify the values. You can publish the config using this command:
$ php artisan vendor:publish --provider="Shallowman\Log\ServiceProvider"
Note: If you want to rewrite the log path please provide a real path.
return [ 'channels' => [ 'filebeat' => [ 'driver' => 'daily', 'path' => env('APP_LOG_PATH', '/application/logs/app.log'), 'tap' => [Shallowman\Log\LogFormatter::class], 'days' => 7, ], ], ];
Add the HandleApplicationLog middleware in the $middleware property of app/Http/Kernel.php class:
protected $middleware = [ // ... \Shallowman\Log\HandleApplicationLog::class, ];