Skip to content

Commit

Permalink
[Cloud Security] Ignore Unavailable Index
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenIdo authored Oct 1, 2024
1 parent 6742f77 commit 748a0a3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export interface FindingsGroupingAggregation {
export const getGroupedFindingsQuery = (query: GroupingQuery) => ({
...query,
index: CDR_MISCONFIGURATIONS_INDEX_PATTERN,
ignore_unavailable: true,
size: 0,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const getFindingsQuery = (
sort: getMultiFieldsSort(sort),
size: MAX_FINDINGS_TO_LOAD,
aggs: getFindingsCountAggQuery(),
ignore_unavailable: false,
ignore_unavailable: true,
query: {
...query,
bool: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export type VulnerabilitiesRootGroupingAggregation =
export const getGroupedVulnerabilitiesQuery = (query: GroupingQuery) => ({
...query,
index: CDR_VULNERABILITIES_INDEX_PATTERN,
ignore_unavailable: true,
size: 0,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const getVulnerabilitiesQuery = (
pageParam: number
) => ({
index: CDR_VULNERABILITIES_INDEX_PATTERN,
ignore_unavailable: true,
sort: getMultiFieldsSort(sort),
size: MAX_FINDINGS_TO_LOAD,
query: {
Expand Down

0 comments on commit 748a0a3

Please sign in to comment.