pavel-marachkov/laravel-elk-log
Composer 安装命令:
composer require pavel-marachkov/laravel-elk-log
包简介
Integrate laravel with elastic search for sending all logs to elastic search
README 文档
README
This package is fork from ahmedofali/laravel-elk-log. That package is a simple initializer of elasticsearch logs for Kibana with laravel.
Installation
Install the package via composer:
composer require pavel-marachkov/laravel-elk-log
Usage
Run the below command to get installation tips.
php artisan elk:installTips
Merge this with logging.php config file
return [ 'channels' => [ 'elastic' => [ 'driver' => 'monolog', 'handler' => ElkHandler::class, 'level' => 'notice', 'formatter' => KibanaFormatter::class ], ], ];
After you publish config file you will find new config file called elk.php add your environment configuration, and you are ready to go with elasticsearch.
Credits
统计信息
- 总下载量: 7.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-23