markmcdowell / NLog.Targets.ElasticSearch

NLog target for Elasticsearch
MIT License
176 stars 89 forks source link

The difference between .Net core and .Net framework in framework is not logged. #173

Closed benestomCZ closed 1 year ago

benestomCZ commented 1 year ago

Good day,

I am trying to save the log to Elastic via Nlog. With the same settings via .net Core, I save the log fine. If I save via the .Net Framework, the following error pops up. Saving to a file via Nlog works fine in both variants.

Do you know what it could be? Or what is the difference between the technologies?

Thank you in advance for your reply.

TB

2023-06-29 15:10:29.4827 Error ElasticSearch: Failed to send log messages. Status= Uri=https://elastic-xxx-logging.apps.ocd.cc.corp/_bulk DebugInformation=Invalid NEST response built from a unsuccessful () low level call on POST: /_bulk

Invalid Bulk items:

Audit trail of this API call:

benestomCZ commented 1 year ago

the problem disappeared after I added to web.config: httpRuntime targetFramework