ahmedofali / laravel-elk-log
Integrate laravel with elastic search for sending all logs to elastic search
Installs: 6 384
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 4
Open Issues: 0
Requires
- php: ^7.3
- elasticsearch/elasticsearch: ^7.0
Requires (Dev)
- phpunit/phpunit: ^8.2
- symfony/var-dumper: ^4.3
This package is not auto-updated.
Last update: 2024-04-23 09:33:08 UTC
README
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.