From 0229a46c7c8997277f26f33aab985a9b97e61099 Mon Sep 17 00:00:00 2001 From: Lulus Date: Fri, 25 Mar 2022 13:26:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BBes8.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zero.Logging.Elasticsearch/EsLoggerProvider.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zero.Logging.Elasticsearch/EsLoggerProvider.cs b/Zero.Logging.Elasticsearch/EsLoggerProvider.cs index 1f19c0d..6a38c8a 100644 --- a/Zero.Logging.Elasticsearch/EsLoggerProvider.cs +++ b/Zero.Logging.Elasticsearch/EsLoggerProvider.cs @@ -121,11 +121,11 @@ protected override async Task WriteMessagesAsync(IEnumerable message var pipelineName = _esHelper.Options.PipelineNameDecider?.Invoke(e) ?? _esHelper.Options.PipelineName; if (string.IsNullOrWhiteSpace(pipelineName)) { - action = new { index = new { _index = indexName, _type = _esHelper.Options.TypeName } }; + action = new { index = new { _index = indexName } }; } else { - action = new { index = new { _index = indexName, _type = _esHelper.Options.TypeName, pipeline = pipelineName } }; + action = new { index = new { _index = indexName, pipeline = pipelineName } }; } var actionJson = _esHelper.Serialize(action); payload.Add(actionJson);