Looking to hire Laravel developers? Try LaraJobs

laravel-opensearchlog maintained by tagadamedia

Description
A simple Laravel package to log against Open Search
Last update
2026/02/25 12:01 (dev-main)
License
Links
Downloads
868

Comments
comments powered by Disqus

laravel-opensearchlog

Getting started

This package allows to use a custom logger with an Open Search server

To install it, use composer


composer require tagadamedia/laravel-opensearchlog

After install, you may add a new logger channel in config/logging.php


return [

'channels' => [
    ...
    
    'opensearch' => [
        'driver' => 'custom',
        'via' => \Tagadamedia\OpenSearchLog\Log\OpenSearchLogger::class,
        'level' => 'error',
        'with' => [
            'application' => 'name_of_application',
            'facility' => env('APP_ENV', 'production'),
        ],
        'http' => [
            'endpoint' => secret('OPENSEARCH_LOG', 'URI'),
            'username' => secret('OPENSEARCH_LOG', 'USER'),
            'password' => secret('OPENSEARCH_LOG', 'PASS'),
            'timeout' => secret('OPENSEARCH_LOG', 'TIMEOUT'),
            'connect_timeout' => secret('OPENSEARCH_LOG', 'CONNECT_TIMEOUT'),
        ],
    ],
    
]