mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #818] Official ElasticSearch PHP client for handler #314
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#314
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @adambro on GitHub (Jul 12, 2016).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/818
I know there's
ElasticSearchHandleralready, but it uses Elastica client to communicate with ES server. I'd rather use ES bulk API directly using some HTTP lib or official ElasticSearch client that I'm using in my app anyway. I saw handler author @skymeyer mentioned using official client, but it was almost 3 years ago.Would you be interested switching to official ES client or having 2nd implementation of handler?
@Seldaek commented on GitHub (Aug 1, 2016):
Given that the current handler uses Elastica and supports bulk sending, I would say it's fine as is, but feel free to publish a third party package using the official ES client API, I just don't want to add new ones in core monolog that have external dependencies.
@adambro commented on GitHub (Aug 16, 2016):
Fair enough. The case is both client libraries are using HTTP interface of ElasticSearch. So actually the ElasticSearch handler could use any generic HTTP client (even built-in CURL extension).
Other handlers also could benefit from generic HTTP implementation. For example HipChat, CouchDB are doing their own HTTP implementation. There's no generic way to handle errors or async / bulk processing.
I guess the topic is more for mailing list discussion, not issue comments, but I haven't found any mailing list for Monolog.
@adambro commented on GitHub (Oct 20, 2016):
For reference: such extensions seems to exist, but haven't seen an update in a while:
https://packagist.org/packages/atrapalo/monolog-elasticsearch
@fhferreira commented on GitHub (Oct 1, 2021):
I created my own, because the Standard was failing when the LOG has an associative array.
LOG_CHANNEL=custom