mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Cloud Security] Adding vuln filter to the scores index (#161648)
This commit is contained in:
parent
ea1e6ed240
commit
47d099e22f
1 changed files with 2 additions and 3 deletions
|
@ -14,6 +14,7 @@ import {
|
|||
import { SearchRequest } from '@kbn/data-plugin/common';
|
||||
import { ElasticsearchClient } from '@kbn/core/server';
|
||||
import type { Logger } from '@kbn/core/server';
|
||||
import { getSafeVulnerabilitiesQueryFilter } from '../../common/utils/get_safe_vulnerabilities_query_filter';
|
||||
import { getSafePostureTypeRuntimeMapping } from '../../common/runtime_mappings/get_safe_posture_type_runtime_mapping';
|
||||
import { getIdentifierRuntimeMapping } from '../../common/runtime_mappings/get_identifier_runtime_mapping';
|
||||
import {
|
||||
|
@ -181,9 +182,7 @@ const getScoreQuery = (): SearchRequest => ({
|
|||
const getVulnStatsTrendQuery = (): SearchRequest => ({
|
||||
index: LATEST_VULNERABILITIES_INDEX_DEFAULT_NS,
|
||||
size: 0,
|
||||
query: {
|
||||
match_all: {},
|
||||
},
|
||||
query: getSafeVulnerabilitiesQueryFilter(),
|
||||
aggs: {
|
||||
critical: {
|
||||
filter: { term: { 'vulnerability.severity': VULNERABILITIES_SEVERITY.CRITICAL } },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue