serilog-sinks-elasticsearch
serilog-sinks-elasticsearch copied to clipboard
Exception while emitting periodic batch from Serilog.Sinks.Elasticsearch.Durable.ElasticsearchLogShipper
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()
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!
Hi Nicholas Blumhardt, Please find my package configuration
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()
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?