You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
Not possible to set api keys from appsettings.json.
Today it has to be done from code
.UseSerilog((context,services,configuration)=>{configuration.WriteTo.Elasticsearch(newElasticsearchSinkOptions(newUri("...")){ModifyConnectionSettings=(x)=>x.ApiKeyAuthentication(newApiKeyAuthenticationCredentials("my api key"))});})
Please describe the expected behavior?
It would be handy if we could configure authentication like api keys from appsettings.json
When somebody submits a PR for this functionality. Alternatively, look at the sink Elastic itself offers if this is a better match. You can find a link in the readme.
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.
serilog.sinks.elasticsearch v8.4.1
What is the target framework and operating system? See target frameworks & net standard matrix.
Please describe the current behavior?
Not possible to set api keys from appsettings.json.
Today it has to be done from code
Please describe the expected behavior?
It would be handy if we could configure authentication like api keys from appsettings.json
Something like
The text was updated successfully, but these errors were encountered: