monolog-bundle icon indicating copy to clipboard operation
monolog-bundle copied to clipboard

`elastic_search` Handler Does Not Work (Invalid Factory Parameters)

Open Kenneth-Sills opened this issue 10 months ago • 0 comments

As noted here, using type: elastic_search for a handler does not work. We attempt to pass the host as host, but the ClientBuilder::fromConfig from upstream expects a plural hosts array.

This applies to both v7 and v8. There are no workarounds, except to install the Elastica client instead (v7 due to https://github.com/symfony/monolog-bundle/issues/499).

We have no tests for elastic_search handlers.

Kenneth-Sills avatar Feb 04 '25 15:02 Kenneth-Sills