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

Exception while emitting periodic batch from Serilog.Sinks.Elasticsearch.Durable.ElasticsearchLogShipper

Open Venkateshjsoft opened this issue 5 years ago • 4 comments

2019-07-11T09:24:35.2593454Z Exception while emitting periodic batch from Serilog.Sinks.Elasticsearch.Durable.ElasticsearchLogShipper: System.MissingMethodException: Method not found: '!!0 Elasticsearch.Net.ElasticLowLevelClient.IndicesPutTemplateForAll(System.String, Elasticsearch.Net.PostData, Elasticsearch.Net.PutIndexTemplateRequestParameters)'. at Serilog.Sinks.Elasticsearch.ElasticsearchSinkState.RegisterTemplateIfNeeded() at Serilog.Sinks.Elasticsearch.Durable.ElasticsearchLogShipper.<OnTick>d__3.MoveNext()

Venkateshjsoft avatar Jul 11 '19 09:07 Venkateshjsoft

Hi! Looks like your version of Elasticsearch.Net is out of sync with what the package requires. Can you please post your package configuration? I'll also transfer this to the ES sink repo, where people with knowledge of the ES ecosystem lurk :-) Cheers!

nblumhardt avatar Aug 02 '19 03:08 nblumhardt

Hi Nicholas Blumhardt, Please find my package configuration

Venkateshjsoft avatar Aug 04 '19 07:08 Venkateshjsoft

Please find the selflog 2019-08-04T07:48:58.6641062Z Exception while emitting periodic batch from Serilog.Sinks.Elasticsearch.Durable.ElasticsearchLogShipper: System.MissingMethodException: Method not found: '!!0 Elasticsearch.Net.ElasticLowLevelClient.IndicesPutTemplateForAll(System.String, Elasticsearch.Net.PostData, Elasticsearch.Net.PutIndexTemplateRequestParameters)'. at Serilog.Sinks.Elasticsearch.ElasticsearchSinkState.RegisterTemplateIfNeeded() at Serilog.Sinks.Elasticsearch.Durable.ElasticsearchLogShipper.<OnTick>d__3.MoveNext()

Venkateshjsoft avatar Aug 04 '19 07:08 Venkateshjsoft

Do check that the package of elasticsearch.net that ends up in your bin folder is indeed the one you would expect. Other dependencies might have pulled in a different version. It is hard to pin point your issues. Try to create a new project and see if you can reproduce?

mivano avatar Aug 20 '19 11:08 mivano