seguce92/openobserve-monolog
最新稳定版本:v0.1.1
Composer 安装命令:
composer require seguce92/openobserve-monolog
包简介
Open Observe Monolog Handler is used for pushing laravel log into the OpenObserve for collection and analysis.
关键字:
README 文档
README
Searching for logs for your applications can be tedious and challenging. OpenObserve solves the problem very elegantly. You can use standard log forwarders like fluentd, fluent-bit, vector, syslog-ng or others to forward logs to OpenObserve. OpenObserve can then store the indexed logs in S3 or on disk and provide fast search for your logs.
OpenObserve Monolog Handler is used for pushing laravel log into the OpenObserve for collection and analysis.
Log forwarders can read the log files incrementally as new logs appear in them and can then forward them in batches in order to be more efficient in sending them.
Install
Install openobserve-monolog.
composer require seguce92/openobserve-monolog
Get Started
1.Modify config/logging.php.
return [ 'channels' => [ // ... "OpenObserve" => \Tasmidur\OpenObserveMonologHandler\OpenObserveLogger::getInstance( indexName: env('OPENOBSERVE_INDEX', "app_log"), baseUrl: env('OPENOBSERVE_BASE_URL', 'http://admin:admin123@localhost:4080/api') ), ], ];
OpenObserve with SSL_VERIFY
return [ 'channels' => [ // ... "OpenObserve" => \Tasmidur\OpenObserveMonologHandler\OpenObserveLogger::getInstance( indexName: env('LOG_INDEX', "app_log"), baseUrl: env('OPENOBSERVE_BASE_URL', 'http://admin:admin123@localhost:4080/api'), options: [ "is_ssl_verify" => true //true or false ] ), ], ];
2.Modify .env.
LOG_CHANNEL=OpenObserve
OPENOBSERVE_INDEX=zinc_log
OPENOBSERVE_BASE_URL=url
License
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-02