Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Serilog.Sinks.Elasticsearch 10.0.0 don't works with Serilog.Sinks.OpenSearch 1.0.0 #584

Open
2 of 8 tasks
DougllasLima opened this issue May 31, 2024 · 0 comments
Open
2 of 8 tasks

Comments

@DougllasLima
Copy link

A few questions before you begin:

Is this an issue related to the Serilog core project or one of the sinks or
community projects.
This issue list is intended for Serilog Elasticsearch Sink issues. If this issue relates to another sink or to the code project,
please log on the related repository. Please use Gitter chat and Stack Overflow for discussions and questions.

Does this issue relate to a new feature or an existing bug?

  • Bug
  • New Feature

What version of Serilog.Sinks.Elasticsearch is affected? Please list the related NuGet package.
Serilog.Sinks.Elasticsearch 10.0.0

What is the target framework and operating system? See target frameworks & net standard matrix.

  • netCore 2.0
  • netCore 1.0
  • 4.7
  • 4.6.x
  • 4.5.x
  • .NET 6

Please describe the current behavior?

Before Serilog.Sinks.Elasticsearch 10.0.0, I worked with Serilog.Sinks.Elasticsearch 9.0.3 and Serilog.Sinks.OpenSearch 1.0.0, and everything worked OK.

But when I upgraded to Serilog.Sinks.Elasticsearch 10.0.0, I started receiving the error:
"Could not load type 'Serilog.Sinks.OpenSearch.OpenSearchSink' from assembly 'Serilog.Sinks.OpenSearch, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' because the parent type is sealed."

I didn't change anything else in my code except the upgrading of the version of Serilog.Sinks.Elasticsearch. When I downgraded Serilog.Sinks.Elasticsearch to version 9.0.3, again everything is working fine.

Please describe the expected behavior?
Serilog.Sinks.Elasticsearch 10.0.0 to work with Serilog.Sinks.OpenSearch 1.0.0

If the current behavior is a bug, please provide the steps to reproduce the issue and if possible a minimal demo of the problem
To reproduce the bug, simply install the Serilog.Sinks.Elasticsearch 10.0.0 package in the project and start the application. If the logs start with the project, the error will be displayed on the screen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant