Looking to hire Laravel developers? Try LaraJobs

laravel-elk-log maintained by ahmedofali

Description
Integrate laravel with elastic search for sending all logs to elastic search
Author
Last update
2019/11/24 11:07 (dev-master)
License
Downloads
6 507

Comments
comments powered by Disqus

Laravel with ElasticSearch Implementation

This package is simple initializer of elasticsearch with laravel

Installation

You can install the package via composer:

composer require ahmedofali/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' => ElasticsearchHandler::class,
            'level' => 'debug',
            'formatter' => ElasticsearchFormatter::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