serilog-sinks-elasticsearch icon indicating copy to clipboard operation
serilog-sinks-elasticsearch copied to clipboard

How to see the error when POST / _bulk returns HTTP code 500

Open nicoclau opened this issue 5 years ago • 4 comments
trafficstars

2020-01-21T17:52:01.4713104Z Exception while emitting periodic batch from Serilog.Sinks.Elasticsearch.Durable.ElasticsearchLogClient: Elasticsearch.Net.ElasticsearchClientException: Request failed to execute. Call: Status code 500 from: POST /_bulk

thanks for your help

nicoclau avatar Jan 21 '20 17:01 nicoclau

The serilog selflog would be a good place to look. Similar; look at the ES logs themselves as they should indicate why they fail.

mivano avatar Jan 21 '20 19:01 mivano

Thank you mivano for the sugestion. I use ES on windows, where are the logs stored?

nicoclau avatar Jan 23 '20 17:01 nicoclau

I believe as a subfolder under your ES folder. But that can be configured. See elastic.co/guide/en/elasticsearch/reference/current/logging.html

mivano avatar Jan 28 '20 21:01 mivano

Thanks for your help

nicoclau avatar Feb 01 '20 14:02 nicoclau