-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Unknown option _type in ElasticsearchLogstashHandler #46667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Indeed sending I see 2 possibilities:
WDYT ? I can make PR for best solution |
This should be solved by Seldaek/monolog#1662. What versions of |
Hi,
|
You must upgrade
|
@GromNaN acutally, the handler is in Symfony itself, see https://github.com/symfony/symfony/blob/6.2/src/Symfony/Bridge/Monolog/Handler/ElasticsearchLogstashHandler.php#L120 When I wrote it, The I'm on it 👍🏼 |
Oh. I got distracted by the other Elasticsearch handler. Thanks for your attention. |
…ticsearchLogstashHandler (lyrixx) This PR was merged into the 4.4 branch. Discussion ---------- [MonologBridge] Fixed support of elasticsearch 7.+ in ElasticsearchLogstashHandler | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #46667 | License | MIT | Doc PR | Commits ------- e14cea9 [MonologBridge] Fixed support of elasticsearch 7.+ in ElasticsearchLogstashHandler
Symfony version(s) affected
6.0.*
Description
While using
ElasticsearchLogstashHandler
I get 400 error in my browser/window terminal depending on the order of the handlers in monolog.yml.Expected behaviour:
The handler should send the log with no error to elastic search.
How to reproduce
While using this log handler with
elasticsearch:8.2.2
I getHTTP/1.1 400 Bad Request returned for "http://127.0.0.1:4307/_bulk".
in the browser. The following is the full stack trace:Possible Solution
When sending the same data via CURL I get a better error message:
This says we are sending an argument which is (no longer) supported, that being
_type
, if I remove that from the CURL payload everything works fine. Within the code, that is the linevendor/symfony/monolog-bridge/Handler/ElasticsearchLogstashHandler.php:114
Additional Context
No response
The text was updated successfully, but these errors were encountered: