diff --git a/x-pack/plugins/observability_solution/observability/public/utils/slo/get_discover_link.ts b/x-pack/plugins/observability_solution/observability/public/utils/slo/get_discover_link.ts index 79a0a849ea13d..b391e286104db 100644 --- a/x-pack/plugins/observability_solution/observability/public/utils/slo/get_discover_link.ts +++ b/x-pack/plugins/observability_solution/observability/public/utils/slo/get_discover_link.ts @@ -73,6 +73,19 @@ function createDiscoverLocator( }, query: customBadFilter as Record, }); + + filters.push({ + $state: { store: FilterStateStore.APP_STATE }, + meta: { + type: 'custom', + alias: i18n.translate('xpack.observability.slo.sloDetails.totalFilterLabel', { + defaultMessage: 'Total events', + }), + value: JSON.stringify(customBadFilter), + index: indexId, + }, + query: customTotalFilter as Record, + }); } const groupBy = [slo.groupBy].flat();