承接 seguce92/openobserve-monolog 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

MIT

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-02