diff --git a/libbeat/outputs/elasticsearch/client.go b/libbeat/outputs/elasticsearch/client.go index ea0a8bb8871..26527c4257b 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,