diff --git a/libbeat/outputs/elasticsearch/client_test.go b/libbeat/outputs/elasticsearch/client_test.go index 1da33a9dd76..6c9ef561161 100644 --- a/libbeat/outputs/elasticsearch/client_test.go +++ b/libbeat/outputs/elasticsearch/client_test.go @@ -461,7 +461,7 @@ func TestBulkEncodeEvents(t *testing.T) { config: common.MapStr{}, ilmConfig: common.NewConfig(), events: []common.MapStr{{"message": "test"}}, - metas: []common.MapStr{common.MapStr{"index": "my-raw-index"}}, + metas: []common.MapStr{common.MapStr{"raw_index": "my-raw-index"}}, }, "latest with ILM and to alias": { version: version.GetDefaultVersion(),