serilog-sinks-elasticsearch
serilog-sinks-elasticsearch copied to clipboard
A Serilog sink that writes events to Elasticsearch
The [example](https://github.com/serilog-contrib/serilog-sinks-elasticsearch#handling-errors) for handling errors in README.md is obsolete: ```cs [...] new FileSink("./failures.txt", new JsonFormatter(), null) ``` ``FileSink`` is obsolete and will be removed from the public API in a...
to set basic auth from code I would use: var options = new ElasticsearchSinkOptions(new Uri(elasticConnection)) { AutoRegisterTemplate = true, IndexFormat = $"{appSettings.ElasticPreIndex}_log_api-{0:yyyy.MM.dd}", options.ModifyConnectionSettings = (c) => c.BasicAuthentication(appSettings.ElasticBasicAuthUserName, appSettings.ElasticBasicAuthPassword) }; How...
**Versions:** .NET Core 3.1 Serilog 2.9.0 Serilog.Sinks.ElasticSearch 8.1.0 **Change in ElasticSearch 8.0** https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html **Code that needs change:** If I set TypeName to null (so that it doesn't get into resulting...
"Serilog.Sinks.Elasticsearch" Version="8.4.1" Elasticsearch image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3 net6.0 Configuration: .WriteTo.Elasticsearch(new(new Uri(elkUrl)) { AutoRegisterTemplate = true, IndexFormat = $"{appName.ToLower().Replace(".", "-")}-{environment.ToLower().Replace(".", "-")}-{DateTime.UtcNow:yyyy-MM}" }) Description: I had issues with connection to elastic (lack of credentials)....
What issue does this PR address? This PR fix the argument "IndexAliases" is not mapped when use serilog-settings-configuration that I addressed in this issue https://github.com/serilog-contrib/serilog-sinks-elasticsearch/issues/400 **Please check if the PR...
".WriteTo.Elasticsearch(new ElasticsearchSinkOptions(new Uri("http://localhost:9200"))" .........
**A few questions before you begin:** > Is this an issue related to the [Serilog core project](https://github.com/serilog/serilog) or one of the [sinks](https://github.com/serilog/serilog/wiki/Provided-Sinks) or [community projects](https://github.com/serilog/serilog/wiki/Community-Projects). This issue list is intended...
**A few questions before you begin:** > Is this an issue related to the [Serilog core project](https://github.com/serilog/serilog) or one of the [sinks](https://github.com/serilog/serilog/wiki/Provided-Sinks) or [community projects](https://github.com/serilog/serilog/wiki/Community-Projects). This issue list is intended...
**What issue does this PR address?** `bufferRetainedInvalidPayloadsLimitBytes` is not read from appsettings **Does this PR introduce a breaking change?** No, I hope not **Please check if the PR fulfills these...
- [x] Bug - [ ] New Feature **What version of Serilog.Sinks.Elasticsearch is affected? Please list the related NuGet package.** Serilog.Sinks.Elasticsearch Version=8.4.1 **What is the target framework and operating system?**...