.netelasticsearchappsettings

How to configure Elastic.Serilog.Sinks librari with appsettings.json?


I want to use Elastic.Serilog.Sinks library (created by Elastic co) to submit logs to an Elastic instance inside the Elastic cloud.

How to configure logging using appsettings.json for a .NET 7 application?

How to configure authentication, Elastic server endpoint etc?

There is NO configuration example in the official documentation :(


Solution

  • This seems impossible at the moment.

    Here's the issue corresponding to this feature.

    Thumbs up to show maintainers the expectation behind this feature.