From 8ddf373cbff6b95f18e55e64a2c7294f5a441f0c Mon Sep 17 00:00:00 2001 From: George Bridgeman <49999150+bestpath-gb@users.noreply.github.com> Date: Tue, 5 May 2020 22:07:03 +0100 Subject: [PATCH] Ignore err as key may not exist. --- libbeat/outputs/elasticsearch/client.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libbeat/outputs/elasticsearch/client.go b/libbeat/outputs/elasticsearch/client.go index ea0a8bb88714..26527c4257b8 100644 --- a/libbeat/outputs/elasticsearch/client.go +++ b/libbeat/outputs/elasticsearch/client.go @@ -316,11 +316,7 @@ func createEventBulkMeta( } id, _ := event.GetMetaStringValue("_id") - opType, err := event.GetMetaStringValue(opTypeKey) - if err != nil { - log.Errorf("%s %v is no string value", opTypeKey, opType) - return nil, err - } + opType, _ := event.GetMetaStringValue(opTypeKey) meta := eslegclient.BulkMeta{ Index: index,