Closed timbze closed 2 years ago
As is usually the case, I spend hours trying to fix something, but the moment I create an issue then I see the solution in the wiki that I've been looking through this whole time 🤦🏽♂️
When connecting to Elastic-Server 8.0 make sure to use documentType="" to avoid unknown parameter error.
Now I get another error for each log, will see if I can still figure that out
Error ElasticSearch: Bulk item failed: index:logstash-2022.07.21 result:created type: error:
Now I get another error for each log, will see if I can still figure that out
I don't know yet what that issue is, but it's different from OP so will close this issue
For everyone stumbling over the same chain of issues after a ElasticSearch v8 upgrade:
You can fix ElasticSearch: Bulk item failed: index:logstash-2022.07.21 result:created type: error:
by enabling the client compatibility mode. To enable the compatibility mode, set the ELASTIC_CLIENT_APIVERSIONING
environment variable to true
. (https://www.elastic.co/guide/en/elasticsearch/client/net-api/7.17/connecting-to-elasticsearch-v8.html#enabling-compatibility-mode)
I'm trying to use this package to send my logs to Elasticsearch, but am getting the error below, and no logs are being sent. I am not sure if I need to configure something differently or if there's an incompatibility in these latest versions...
I'm using: .NET 7.0 preview 6 NLog 5.1.0 NLog.Targets.ElasticSearch 7.7.0 Elasticsearch 8.3.2
My
nlog.config
relevant parts:NLog error: