From 825d0fdeea18f9f81552b853c60019b4af94f3c8 Mon Sep 17 00:00:00 2001 From: ruflin Date: Tue, 4 Aug 2020 10:51:32 +0200 Subject: [PATCH] [Ingest Manager] Adjust dataset aggs to use datastream fields instead Elastic Agent and Elasticsearch are switching over from using dataset.* to datastream.*. This adjust the aggregation on the dataset page to get the datastreams. For this to work properly, the most recent version of Elasticsearch 7.9 must be used and is pending updates on all the packages to ship also the datastream fields, see https://github.com/elastic/integrations/pull/213 --- .../ingest_manager/server/routes/data_streams/handlers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/ingest_manager/server/routes/data_streams/handlers.ts b/x-pack/plugins/ingest_manager/server/routes/data_streams/handlers.ts index df37aeb27c75c..e22ad81e33981 100644 --- a/x-pack/plugins/ingest_manager/server/routes/data_streams/handlers.ts +++ b/x-pack/plugins/ingest_manager/server/routes/data_streams/handlers.ts @@ -54,19 +54,19 @@ export const getListHandler: RequestHandler = async (context, request, response) aggs: { dataset: { terms: { - field: 'dataset.name', + field: 'datastream.dataset', size: 1, }, }, namespace: { terms: { - field: 'dataset.namespace', + field: 'datastream.namespace', size: 1, }, }, type: { terms: { - field: 'dataset.type', + field: 'datastream.type', size: 1, }, },