Open AlexGoris-KasparSolutions opened 1 year ago
@AlexGoris-KasparSolutions What configuration do you use for the sink in your .NET project when this error happens?
@AlexGoris-KasparSolutions What configuration do you use for the sink in your .NET project when this error happens?
As described, I started from the sample project of this repo, only configured the ConnectionStrings:elasticsearch
to point at my local elk stack (running sebp/elk:7.17.5) and started it with dotnet run
So the configuration is the one which is found in Program.cs
line 33
@AlexGoris-KasparSolutions Thank you for the details. I've added few comments to your pull request: https://github.com/serilog-contrib/serilog-sinks-elasticsearch/pull/519#pullrequestreview-1400449741, if it's possible to round it up properly.
Does this issue relate to a new feature or an existing bug?
What version of Serilog.Sinks.Elasticsearch is affected? Please list the related NuGet package. 9.0.0
What is the target framework and operating system? See target frameworks & net standard matrix.
Please describe the current behavior? When starting with an ES v7 server which doesn't have any serilog template configure, the sink tries to create the template, this fails with the following exception:
Please describe the expected behavior? Template creation should succeed without exceptions.
If the current behavior is a bug, please provide the steps to reproduce the issue and if possible a minimal demo of the problem Running the sample project with
dotnet run
, changing nothing other than theConnectionStrings:elasticsearch
parameter inappsettings.json
against a local docker container running the sebp/elk:7.17.5 docker image.Make sure you have the default
serilog-events-template
template deleted as if you've previously used 8.4.1 of this sink the template will already be there and won't be recreated.