-
Notifications
You must be signed in to change notification settings - Fork 89
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
Error ElasticSearch Bulk item failed index result created type error #172
Comments
From the Wiki:
|
We have it in the nlog configuration. Without this parameter the message would not be written to the ELK and the following error would occur
|
Here is an example of our configuration
|
Link below is a code section that generates current error NLog.Targets.ElasticSearch/src/NLog.Targets.ElasticSearch/ElasticSearchTarget.cs Line 386 in 2fb9a27
It looks like wrong interpretation of CREATED status as error |
Yes it would be nice to reverse the attempt to parse the publish reply, so it was more fire and forget.
Consider to revert: #149
|
Could you try reverting to the previous release NLog.Targets.ElasticSearch 7.6.0 and report if it fixes the error ? |
This issue related to #156 |
I have the same issue where I have NLog.Targets.ElasticSearch version 7.7.0. My Nlog configuration does have
But I get this error now -
|
When connecting to Elastic-Server 8.0 make sure to use |
@snakefoot Do you know how to resolve this error?
|
No idea why it "fails" with status Maybe relevant: #164 (comment) about setting environment-variable |
So... what's the status here? Half year later we still see those errors with NLog 5.2.4 and NLog.Targets.ElasticSearch 7.7.0 in the internal NLog log file. |
Hi, I have the same error with : ELK 8.7.1 and NLOG Elastic search 7.7.0
When i pass the internal nlog level to "Trace", i have more details on the error :
Can someone help me ? |
I can verify downgrading to this version fixes this error. |
Thank you for the confirmation. @markmcdowell Would you be interested in a pull-request that reverts #149 and then release a new version 7.8.0 ? Maybe followed by updating to latest ElasticSearch and change default-parameters to support ElasticSearch v8 by default and release version 8.0 ? |
Sounds like a good idea |
When switching from ELK 7.12.1 to ELK 8.5.3, there is an error when sending logs with NLog 5 (
NLog Version 5.1.0, NLog.Targets.ElasticSearch Version 7.7.0
)Error ElasticSearch: Bulk item failed: index:dev-000005 result:created type: error:
Can it be related to the fact that ElasticSearch 8 does not have such a concept as
_type
which is expected to see in the NLog response?The ElasticSearch messages were written correctly and without errors
After analyzing the network traffic of the application we saw that like in the case of ELK 7 and ELK 8 the response code is 200 and the only difference is the absence of field
_type
in the response from ELK 8If it is so, what can we do to fix it?
The text was updated successfully, but these errors were encountered: