-
Notifications
You must be signed in to change notification settings - Fork 197
Conversation
Note this PR deletes some |
src/Serilog.Sinks.Elasticsearch/Serilog.Sinks.Elasticsearch.csproj
Outdated
Show resolved
Hide resolved
src/Serilog.Sinks.Elasticsearch/Sinks/ElasticSearch/ElasticSearchTemplateProvider.cs
Show resolved
Hide resolved
src/Serilog.Sinks.Elasticsearch/Sinks/ElasticSearch/ElasticSearchTemplateProvider.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
src/Serilog.Sinks.Elasticsearch/Sinks/ElasticSearch/ElasticSearchTemplateProvider.cs
Show resolved
Hide resolved
src/Serilog.Sinks.Elasticsearch/Sinks/ElasticSearch/ElasticSearchTemplateProvider.cs
Show resolved
Hide resolved
src/Serilog.Sinks.Elasticsearch/Sinks/ElasticSearch/ElasticSearchTemplateProvider.cs
Show resolved
Hide resolved
src/Serilog.Sinks.Elasticsearch/Sinks/ElasticSearch/ElasticSearchTemplateProvider.cs
Show resolved
Hide resolved
src/Serilog.Sinks.Elasticsearch/Sinks/ElasticSearch/ElasticsearchSinkState.cs
Outdated
Show resolved
Hide resolved
…ks-elasticsearch into feature/7.x-support
Updated the PR @mivano thanks for the review. I am on holiday for 2 weeks so won't be able to merge this in if all good so please feel free to do so! |
Thanks @Mpdreamz and have a good holiday. I will merge it to dev so we have some test packages. |
I pushed an alpha package to nuget so we can gather some feedback: https://www.nuget.org/packages/Serilog.Sinks.ElasticSearch/8.0.0-alpha0025 |
@mivano wouldn't it be better to try to match versions of the Sink to versions of the SDK and/or Elasticsearch itself? Just wondering. |
It is breaking enough that it warrants a major version bump. The 7 or 8 does not also match the ES product version. It still has support for 6 for example. |
Version 8 is now published: https://www.nuget.org/packages/Serilog.Sinks.ElasticSearch/8.0.0 |
Good Afternoon, I am trying to connect to Elastic Search using the latest 8.0.0 and I don't see any log entries in my Elastic Search. Is there a different configuration I have to do? Here's what my code looks like for Service Fabric w/ Serilog:
The index is of a simple 'test-{0:yyyy.MM}' format. I have commented out the BufferBaseFileName in the snippet above but uncommenting it doesn't make any changes. What's interesting is that I have an ASP.NET Core project that does this just fine so I know it isn't a v7 issue. I read somewhere in an issues list that only public facing IP systems are able to make logs? Please also note that there are 5 instances of the same service in Service Fabric. Could that be affecting things? Would love to get some feedback. I've spent quite a bit of time trying to figure this out. |
@hypertrends I had the same problem, I have to configure: |
Hello @staticdev - let me check that. As you can see in my snippets, I definitely have that information set right. I will review my log levels to see what's up. |
I had the same problem. After few hours investigation and debugging, I founded that Assembly Version of Serilog.Sinks.Elasticsearch was old. I am using 8.0.0 version, but in file displayed 6.0.0. To fix this problem, I did the followings:
Hi @mivano , I would like to push my change in dev brach. Or Kindly ask you to update assembly version and publish new version, so we can use it from NuGet. Thanks, hope it will help. |
Good Morning @SamilMehdiyev - wow, I hadn't even thought about that. Looking at it right now :) Thank you so much! |
Getting smae issue as @hypertrends - were you able to resolve this issue? |
What issue does this PR address?
Adds 7.0 support (continuation of @kanadaj's PR ElasicSearch 7.0 support #248
Adds
DetectElasticsearchVersion
to the sink that will detect the running cluster version. Something we now use to support sendingEsv6
templates toElasticsearch 7.x
andEsv7
templates toElasticsearch 6.x
which should simplify upgrades.Adds an integration test project
DetectElasticsearchVersion
works.Does this PR introduce a breaking change?
The base TFM is now
netstandard2.0
andnet461
.Please check if the PR fulfills these requirements