Skip to content

Commit

Permalink
[Ingest Manager] Adjust dataset aggs to use datastream fields instead
Browse files Browse the repository at this point in the history
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 elastic/integrations#213
  • Loading branch information
ruflin committed Aug 4, 2020
1 parent d30ae5f commit 825d0fd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
Expand Down

0 comments on commit 825d0fd

Please sign in to comment.