ecs-dotnet icon indicating copy to clipboard operation
ecs-dotnet copied to clipboard

Creating a data stream per log level in Elasticsearch

Open ArminShoeibi opened this issue 1 year ago • 0 comments

Hi there,

Do we have a feature like Index Decider in https://github.com/elastic/ecs-dotnet/tree/main/src/Elastic.Serilog.Sinks to create indexes per log level and date in the Data stream?

Here you can see IndexDecider and its tests

https://github.com/serilog-contrib/serilog-sinks-elasticsearch/blob/dev/src/Serilog.Sinks.Elasticsearch/Sinks/ElasticSearch/ElasticsearchSinkOptions.cs#L191

https://github.com/serilog-contrib/serilog-sinks-elasticsearch/blob/dev/test/Serilog.Sinks.Elasticsearch.Tests/IndexDeciderTests.cs

ArminShoeibi avatar Aug 27 '24 10:08 ArminShoeibi