Skip to content

Commit

Permalink
Detect * in KQL as "show al"l alert filter
Browse files Browse the repository at this point in the history
  • Loading branch information
fkanout committed Nov 25, 2021
1 parent 6ebbb68 commit 029bbea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/observability/public/pages/alerts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ const NO_INDEX_NAMES: string[] = [];
const NO_INDEX_PATTERNS: IndexPatternBase[] = [];
const BASE_ALERT_REGEX = new RegExp(`\\s*${regExpEscape(ALERT_STATUS)}\\s*:\\s*"(.*?|\\*?)"`);
const ALERT_STATUS_REGEX = new RegExp(
`\\s*and\\s*${regExpEscape(ALERT_STATUS)}\\s*:\\s*".+?"|${regExpEscape(
`\\s*and\\s*${regExpEscape(ALERT_STATUS)}\\s*:\\s*(".+?"|\\*?)|${regExpEscape(
ALERT_STATUS
)}\\s*:\\s*".+?"`,
)}\\s*:\\s*(".+?"|\\*?)`,
'gm'
);

Expand Down

0 comments on commit 029bbea

Please sign in to comment.