From 571bf04cefceae459f14bb416e289d7fe74133e8 Mon Sep 17 00:00:00 2001 From: meysamhadeli Date: Sun, 20 Nov 2022 16:23:11 +0330 Subject: [PATCH] remove unnecessary config for index-format-elastic --- src/BuildingBlocks/Logging/Extensions.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/BuildingBlocks/Logging/Extensions.cs b/src/BuildingBlocks/Logging/Extensions.cs index f4a1f9f..825b70a 100644 --- a/src/BuildingBlocks/Logging/Extensions.cs +++ b/src/BuildingBlocks/Logging/Extensions.cs @@ -44,8 +44,7 @@ namespace BuildingBlocks.Logging new ElasticsearchSinkOptions(new Uri(logOptions.Elastic.ElasticServiceUrl)) { AutoRegisterTemplate = true, - IndexFormat = - $"{appOptions.Name}-{environment?.ToLower().Replace(".", "-")}-{DateTime.UtcNow:yyyy-MM}" + IndexFormat = $"{appOptions.Name}-{environment?.ToLower()}" }); }