if len(req) == 2 { // index or update requests
if err = json.Unmarshal([]byte(req[1]), &body); err != nil {
p.logger.Error("Unable to unmarshal ES request body.", tag.Error(err))
metrics.ElasticsearchBulkProcessorCorruptedData.With(p.metricsHandler).Record(1)