diff --git a/src/Elasticsearch.Extensions.Logging/ElasticsearchLogger.cs b/src/Elasticsearch.Extensions.Logging/ElasticsearchLogger.cs index 1b51e76b..cf560db2 100644 --- a/src/Elasticsearch.Extensions.Logging/ElasticsearchLogger.cs +++ b/src/Elasticsearch.Extensions.Logging/ElasticsearchLogger.cs @@ -144,7 +144,7 @@ private static bool AssignKnownHttpKeys(LogEvent logEvent, string key, object va logEvent.Http.RequestBytes = long.TryParse(contentLength, out var l) ? l : (long?)null; return true; case "Scheme" when value is string scheme: - logEvent.Http ??= new Http(); + logEvent.Url ??= new Url(); logEvent.Url.Scheme = scheme; return true; case "Host" when value is string host: