Package Data | |
---|---|
Maintainer Username: | tasmidur |
Maintainer Contact: | tasmidurrahman@gmail.com (Md Tasmidur Rahman) |
Package Create Date: | 2022-09-14 |
Package Last Update: | 2022-09-14 |
Home Page: | https://packagist.org/packages/tasmidur/zinc-search-monolog-handler |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-17 03:09:06 |
Package Statistics | |
---|---|
Total Downloads: | 3,284 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Searching for logs for your applications can be tedious and challenging. ZincSearch solves the problem very elegantly. You can use standard log forwarders like fluentd, fluent-bit, vector, syslog-ng or others to forward logs to ZincSearch. ZincSearch can then store the indexed logs in S3 or on disk and provide fast search for your logs.
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
or you can install by following this documentation
Install zinc-search-monolog-handler.
composer require tasmidur/zinc-search-monolog-handler
1.Modify config/logging.php
.
return [
'channels' => [
// ...
"zincSearch" => \Tasmidur\ZincSearchMonologHandler\ZincSearchLogger::getInstance(
indexName: env('ZINC_SEARCH_INDEX', "zinc_log"),
baseUrl: env('ZINC_SEARCH_BASE_URL', 'http://admin:admin123@localhost:4080/api')
),
],
];
return [
'channels' => [
// ...
"zincSearch" => \Tasmidur\ZincSearchMonologHandler\ZincSearchLogger::getInstance(
indexName: env('LOG_INDEX', "zinc_log"),
baseUrl: env('ZINC_SEARCH_BASE_URL', 'http://admin:admin123@localhost:4080/api'),
options: [
"is_ssl_verify" => true //true or false
]
),
],
];
2.Modify .env
.
LOG_CHANNEL=zincSearch
ZINC_SEARCH_INDEX=zinc_log
ZINC_SEARCH_BASE_URL=url