Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-elasticsearch-logger maintained by ivampiresp

Description
Laravel log to elasticsearch
Author
Last update
2023/12/26 14:53 (dev-sweep/add-sweep-config)
License
Links
Downloads
1 511

Comments
comments powered by Disqus

How to use

in your config/logging.php channels

'elastic' => [
    'driver' => 'custom',
    'via' => \ivampiresp\LaravelElasticsearchLogger\ESLogger::class,
    'verify_ssl' => false,
    'hosts' => [env('ELASTIC_HOST', 'https://localhost:9200')],
    'user' => env('ELASTIC_USER', 'elastic'),
    'pass' => env('ELASTIC_PASS', ''),
    'index' => Str::slug(env('APP_NAME', 'laravel'), '_').'-logs'
]

that's all.